Repository navigation
ci: fix migration-policy false positives from shallow base fetch #12
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: Migration policy | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| policy: | |
| # Dependabot metadata PRs do not consume the self-hosted policy runner. | |
| if: github.event_name != 'pull_request' || github.event.pull_request.user.type != 'Bot' | |
| runs-on: [self-hosted, node-b, linux, x64] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Verify migration policies | |
| shell: bash | |
| run: bash ci/migration-policy.sh |