mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-18 10:31:31 +00:00
CI: skip cache cleanup on pull requests
Fork PR GITHUB_TOKENs cannot delete repository Actions caches, so run the cleanup only after trusted pushes to master.
This commit is contained in:
2
.github/workflows/build-linux.yml
vendored
2
.github/workflows/build-linux.yml
vendored
@@ -188,7 +188,7 @@ jobs:
|
||||
|
||||
- name: Cleanup old caches
|
||||
uses: actions/github-script@v6
|
||||
if: always()
|
||||
if: ${{ always() && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
|
||||
Reference in New Issue
Block a user