chore: Bump version #356
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
| # yamllint disable rule:line-length rule:truthy | |
| --- | |
| name: Release Drafter | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request_target: | |
| types: [opened, reopened, synchronize, edited] | |
| permissions: read-all | |
| jobs: | |
| update_pr_labels: | |
| name: Update PR Labels | |
| if: github.event_name == 'pull_request_target' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # for release-drafter to read config/repo metadata | |
| pull-requests: write # for release-drafter to add labels to PR | |
| steps: | |
| - uses: release-drafter/release-drafter@v6 | |
| with: | |
| disable-autolabeler: false | |
| disable-releaser: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| update_release_draft: | |
| name: Update Release Draft | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # for release-drafter to create/update release draft | |
| pull-requests: read # for release-drafter to read PR data associated with commits | |
| env: | |
| PUBLISH_DRAFT: false | |
| steps: | |
| - name: Check if a version is cut | |
| if: "contains(github.event.head_commit.message, 'chore(prerelease): Cut Version')" | |
| run: | | |
| echo "PUBLISH_DRAFT=true" >> $GITHUB_ENV | |
| # Drafts your next Release notes | |
| - uses: release-drafter/release-drafter@v6 | |
| with: | |
| disable-autolabeler: true | |
| disable-releaser: false | |
| publish: ${{ env.PUBLISH_DRAFT }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |