-
-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (32 loc) · 1.05 KB
/
notify-issues.yml
File metadata and controls
34 lines (32 loc) · 1.05 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
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
jobs:
release-comment-issues:
runs-on: ubuntu-latest
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 mentioned in release
# Skip nightly/dev builds — only comment on stable releases
if: |
steps.get_version.outputs.version != ''
&& !contains(steps.get_version.outputs.version, '-dev.')
uses: getsentry/release-comment-issues-gh-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ steps.get_version.outputs.version }}