fix: bump minimum supported CLI version to 0.3.0 #55
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: Post-merge CI trigger | |
| on: | |
| pull_request: | |
| types: [closed] | |
| workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: post-merge-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| trigger: | |
| name: Trigger CI on main | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| if: github.event.pull_request.merged == true | |
| permissions: | |
| actions: write | |
| contents: write | |
| steps: | |
| - name: Harden runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Trigger workflows on main | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh workflow run ci.yml --ref main --repo "${{ github.repository }}" | |
| gh workflow run security.yml --ref main --repo "${{ github.repository }}" | |
| gh workflow run scorecard.yml --ref main --repo "${{ github.repository }}" | |
| - name: Auto-update open PR branches | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh pr list --base main --state open --json number --jq '.[].number' \ | |
| --repo "${{ github.repository }}" | while read -r pr; do | |
| echo "Updating PR #$pr" | |
| gh pr update-branch "$pr" --repo "${{ github.repository }}" || true | |
| done |