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