forked from lnreader/lnreader-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.53 KB
/
Copy pathupdate-issue-template.yml
File metadata and controls
51 lines (44 loc) · 1.53 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
40
41
42
43
44
45
46
47
48
49
50
51
name: Update Issue Template
on:
workflow_run:
workflows:
- Publish Plugins
types:
- completed
branches:
- master
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
update_template:
name: Update Issue Template
runs-on: ubuntu-latest
permissions:
contents: write
if: |
github.repository == 'LNReader/lnreader-plugins' &&
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push'
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: master
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '24'
- name: Generate Issue Template Options
run: node ./.github/scripts/generate-issue-template-options.cjs
- name: Commit And Push Changes
run: |
if git diff --quiet -- .github/ISSUE_TEMPLATE/report_issue.yml .github/scripts/keys.json; then
echo "No issue template changes to commit." >> "$GITHUB_STEP_SUMMARY"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .github/ISSUE_TEMPLATE/report_issue.yml .github/scripts/keys.json
git commit -m "chore: Update Issue Template Plugin Options [skip ci]"
git push origin HEAD:master