chore(ci): check MinimumVersionTag in the release pipeline #360
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: Workflow Linting | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/**" | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| actionlint: | |
| name: Lint GitHub Actions workflows | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed workflow files | |
| id: changed-files | |
| uses: tj-actions/changed-files@v47.0.2 | |
| with: | |
| files: .github/workflows/**/*.{yml,yaml} | |
| - name: Run actionlint with reviewdog | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| uses: reviewdog/action-actionlint@v1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| reporter: github-pr-check | |
| filter_mode: file | |
| fail_level: error | |
| - name: No workflow files changed | |
| if: steps.changed-files.outputs.any_changed != 'true' | |
| run: echo "No workflow files were changed in this PR. Skipping actionlint." |