-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GH automation to comment on issues when the fix for the issue has…
… been released
- Loading branch information
1 parent
a7c2d70
commit e28437d
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Automation: Notify issues for release" | ||
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-20.04 | ||
name: 'Notify issues' | ||
steps: | ||
- name: Get version | ||
id: get_version | ||
run: echo "version=${{ github.event.inputs.version || github.event.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, 'a') | ||
&& !contains(steps.get_version.outputs.version, 'b') | ||
&& !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 }} |