Java/.github/workflows/issues.yml
Chawye Hsu 3d40d5fe4c
ci: fix issue handler permissions
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
2026-04-27 23:06:49 +08:00

25 lines
619 B
YAML

name: Issues
on:
issues:
types: [ opened, labeled ]
permissions:
# Auto hash fixing commits
contents: write
issues: write
jobs:
issueHandler:
name: IssueHandler
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: IssueHandler
uses: ScoopInstaller/GithubActions@main
if: github.event.action == 'opened' || (github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'verify'))
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCOOP_BRANCH: develop