mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-01 10:59:16 +00:00
Add milestone-spring-releasetrain.yml
Check if milestones are part of the release train Closes gh-9989
This commit is contained in:
parent
bbf5614a9c
commit
1545ccb406
20
.github/workflows/milestone-spring-releasetrain.yml
vendored
Normal file
20
.github/workflows/milestone-spring-releasetrain.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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: 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 MONDAY --expectedMondayCount 3
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user