diff options
author | Hailey <me@haileyok.com> | 2024-04-05 08:58:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 08:58:28 -0700 |
commit | c80dcc565ea64d07d47ebf3e0db617e2c48d2556 (patch) | |
tree | 7e83a4c9f9d953875bf41c190051abfc4459113e /.github | |
parent | 443dfb5c3e9438932bd61e754a01197604d03188 (diff) | |
download | voidsky-c80dcc565ea64d07d47ebf3e0db617e2c48d2556.tar.zst |
only run labelers for core team (#3426)
* use `pull_request_target` instead of `pull_request` * adjust * only run for core team
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/pull-request-commit.yml | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/.github/workflows/pull-request-commit.yml b/.github/workflows/pull-request-commit.yml index 10c9a2c5f..6c796fd7c 100644 --- a/.github/workflows/pull-request-commit.yml +++ b/.github/workflows/pull-request-commit.yml @@ -13,13 +13,15 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} cancel-in-progress: true +permissions: + pull-requests: write + actions: write + contents: read + jobs: webpack-analyzer: runs-on: ubuntu-22.04 - if: ${{ github.event_name == 'pull_request' }} - permissions: - pull-requests: write - actions: write + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} steps: - name: ⬇️ Checkout uses: actions/checkout@v4 @@ -94,11 +96,8 @@ jobs: test-suite-fingerprint: runs-on: ubuntu-22.04 - if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }} + if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' }} concurrency: fingerprint-${{ github.event_name != 'pull_request' && 'main' || github.run_id }} - permissions: - pull-requests: write - actions: write steps: - name: ⬇️ Checkout uses: actions/checkout@v4 |