File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Automation: Notify issues for release"
2
+ on :
3
+ release :
4
+ types :
5
+ - published
6
+ workflow_dispatch :
7
+ inputs :
8
+ version :
9
+ description : Which version to notify issues for
10
+ required : false
11
+
12
+ # This workflow is triggered when a release is published
13
+ jobs :
14
+ release-comment-issues :
15
+ runs-on : ubuntu-20.04
16
+ name : Notify issues
17
+ steps :
18
+ - name : Get version
19
+ id : get_version
20
+ run : echo "version=${{ github.event.inputs.version || github.event.release.tag_name }}" >> $GITHUB_OUTPUT
21
+
22
+ - name : Comment on linked issues that are mentioned in release
23
+ if : |
24
+ steps.get_version.outputs.version != ''
25
+ && !contains(steps.get_version.outputs.version, 'a')
26
+ && !contains(steps.get_version.outputs.version, 'b')
27
+ && !contains(steps.get_version.outputs.version, 'rc')
28
+ uses : getsentry/release-comment-issues-gh-action@v1
29
+ with :
30
+ github_token : ${{ secrets.GITHUB_TOKEN }}
31
+ version : ${{ steps.get_version.outputs.version }}
You can’t perform that action at this time.
0 commit comments