perf: template permission (#6848)

* perf: template permission

* perf: action

* doc
This commit is contained in:
Archer
2026-04-28 21:35:13 +08:00
committed by GitHub
parent aee6c0b1b0
commit 9f5e1d08b7
7 changed files with 66 additions and 50 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ permissions:
jobs:
build:
if: ${{ github.event.pull_request.author_association == 'MEMBER' }}
if: ${{ contains(fromJSON('["COLLABORATOR", "OWNER"]'), github.event.pull_request.author_association) }}
runs-on: ubuntu-24.04
steps:
+1 -1
View File
@@ -20,7 +20,7 @@ concurrency:
jobs:
test:
if: ${{ github.event_name != 'pull_request_target' || github.event.pull_request.author_association == 'MEMBER' }}
if: ${{ github.event_name != 'pull_request_target' || contains(fromJSON('["COLLABORATOR", "OWNER"]'), github.event.pull_request.author_association) }}
runs-on: ubuntu-latest
permissions: