Skip to content

Commit

Permalink
Check for empty DUE_ON
Browse files Browse the repository at this point in the history
  • Loading branch information
rwinch authored Jun 22, 2021
1 parent d353afc commit b7b76ca
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@ You can integrate with GitHub Actions using something like this
on:
milestone:
types: [created, opened, edited]
env:
DUE_ON: ${{ github.event.milestone.due_on }}
TITLE: ${{ github.event.milestone.title }}
jobs:
spring-releasetrain-checks:
name: Check DueOn is on a Release Date
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
DUE_ON: ${{ github.event.milestone.due_on }}
- name: Print Milestone Being Checked
run: echo "Validating DueOn '$DUE_ON' for milestone '$TITLE'"
- name: Validate DueOn
if: env.DUE_ON != ''
run: |
export TOOL_VERSION=0.1.1
wget "https://repo.maven.apache.org/maven2/io/spring/releasetrain/spring-release-train-tools/$TOOL_VERSION/spring-release-train-tools-$TOOL_VERSION.jar"
java -cp "spring-release-train-tools-$TOOL_VERSION.jar" io.spring.releasetrain.CheckMilestoneDueOnMain --dueOn "$DUE_ON" --expectedDayOfWeek THURSDAY --expectedMondayCount 3
----

0 comments on commit b7b76ca

Please sign in to comment.