Bug Report Updater #297
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bug Report Updater | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
permissions: | |
contents: read | |
jobs: | |
update-bug-report: | |
name: Bug Report Updater | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
if: contains(github.actor, 'github-actions') == false | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.repository.default_branch }} | |
- name: Generate Token | |
uses: tibdex/github-app-token@v2 | |
id: generate-token | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: Update laravel version | |
id: laravel | |
uses: ShaMan123/gha-populate-form-version@c289e3d22bff63c3935c1880da1cc6bdf4b16c23 # v2.0.2 | |
with: | |
dropdown: _laravel_version | |
package: laravel/laravel | |
registry: github | |
semver: ">=9.0" | |
form: .github/ISSUE_TEMPLATE/bug_report.yml | |
commit_message: "chore: update laravel version in bug report template" | |
dry_run: no-push | |
- name: Update Node version | |
id: node | |
uses: ShaMan123/gha-populate-form-version@c289e3d22bff63c3935c1880da1cc6bdf4b16c23 # v2.0.2 | |
with: | |
dropdown: _node_version | |
package: node | |
semver: ">=18.12.0" | |
form: .github/ISSUE_TEMPLATE/bug_report.yml | |
commit_message: "chore: update node version in bug report template" | |
dry_run: no-push | |
- name: Commit & PR | |
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
add-paths: .github/ISSUE_TEMPLATE/bug_report.yml | |
commit-message: "chore: update bug report template" | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: workflow/update-bug-report-template | |
base: main | |
delete-branch: true | |
title: "chore: update bug report template" | |
body: | | |
Automated update to `.github/ISSUE_TEMPLATE/bug_report.yml` |