Harden test suites #235
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: Release Drafter | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Override release version (e.g., v1.1.0)' | |
| required: false | |
| type: string | |
| permissions: | |
| contents: read | |
| jobs: | |
| update_release_draft: | |
| # Skip on PRs from forks: those runs get a read-only GITHUB_TOKEN, so the | |
| # release-creation step always 403s. Still runs on push to main, same-repo | |
| # PRs, and manual dispatch. | |
| if: >- | |
| github.event_name != 'pull_request' || | |
| github.event.pull_request.head.repo.full_name == github.repository | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: release-drafter/release-drafter@v7 | |
| with: | |
| version: ${{ inputs.version }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |