-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github workflow to comment on issues when a fix was released (#3866)
- Loading branch information
1 parent
50222ca
commit fe4b88b
Showing
1 changed file
with
31 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,31 @@ | ||
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 }} |