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
| # Notify issues when they are included in a release | |
| # Posts a comment on linked issues to let users know their issue was resolved | |
| name: "Automation: Notify issues for release" | |
| permissions: | |
| contents: read | |
| issues: write | |
| on: | |
| release: | |
| types: | |
| - published | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: Which version to notify issues for | |
| required: false | |
| # This workflow is triggered when a release is published | |
| jobs: | |
| release-comment-issues: | |
| runs-on: ubuntu-24.04 | |
| name: "Notify issues" | |
| steps: | |
| - name: Get version | |
| id: get_version | |
| env: | |
| INPUTS_VERSION: ${{ github.event.inputs.version }} | |
| RELEASE_TAG_NAME: ${{ github.event.release.tag_name }} | |
| run: echo "version=${INPUTS_VERSION:-$RELEASE_TAG_NAME}" >> "$GITHUB_OUTPUT" | |
| - name: Comment on linked issues that are mentioned in release | |
| if: | | |
| steps.get_version.outputs.version != '' | |
| && !contains(steps.get_version.outputs.version, '-beta.') | |
| && !contains(steps.get_version.outputs.version, '-alpha.') | |
| && !contains(steps.get_version.outputs.version, '-rc.') | |
| uses: getsentry/release-comment-issues-gh-action@v1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| version: ${{ steps.get_version.outputs.version }} | |