Simplify bundled skill catalog and routing #4006
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: PR target branch | |
| "on": | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened, ready_for_review, labeled, unlabeled] | |
| merge_group: | |
| types: [checks_requested] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| validate-target: | |
| name: Validate target branch | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Check out trusted workflow scripts | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.repository.default_branch }} | |
| persist-credentials: false | |
| - name: Check out bootstrap validator before first merge | |
| if: ${{ github.event_name == 'pull_request' && hashFiles('.github/scripts/validate-pr-target-branch.sh') == '' }} | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| persist-credentials: false | |
| - name: Validate target branch | |
| env: | |
| PR_BASE_REF: ${{ github.event_name == 'merge_group' && github.event.merge_group.base_ref || github.event.pull_request.base.ref }} | |
| PR_HEAD_REF: ${{ github.event_name == 'merge_group' && github.event.merge_group.head_ref || github.event.pull_request.head.ref }} | |
| PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ',') }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| GH_TOKEN: ${{ github.token }} | |
| run: bash .github/scripts/validate-pr-target-branch.sh |