-
Notifications
You must be signed in to change notification settings - Fork 590
39 lines (36 loc) · 1.2 KB
/
release-comment-issues.yml
File metadata and controls
39 lines (36 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
permissions:
issues: write
contents: write
pull-requests: write
jobs:
release-comment-issues:
runs-on: ubuntu-20.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, '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 }}