vendor: github.com/moby/moby/client v0.4.1, moby/api v1.54.2 #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: validate-milestone | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, milestoned, demilestoned, edited] | |
| jobs: | |
| validate-milestone: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| sparse-checkout: VERSION | |
| - name: Validate milestone matches VERSION | |
| run: | | |
| expected=$(cat VERSION) | |
| milestone="${{ github.event.pull_request.milestone.title }}" | |
| if [[ -z "$milestone" ]]; then | |
| echo "::error::PR must have a milestone set (expected: $expected)" | |
| exit 1 | |
| fi | |
| if [[ "$milestone" != "$expected" ]]; then | |
| echo "::error::Milestone '$milestone' does not match VERSION '$expected'" | |
| exit 1 | |
| fi | |
| echo "Milestone: $milestone ✓" |