ci: skip clear cache if the PR is a fork (#1880)

This commit is contained in:
Clement Tsang 2025-11-17 06:21:35 -05:00 committed by GitHub
parent 3ee950003b
commit 85af7ba50d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,7 @@ on:
jobs: jobs:
clear-cache: clear-cache:
if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}