mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-21 21:30:48 -05: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:
@@ -188,7 +188,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cleanup old caches
|
- name: Cleanup old caches
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
if: always()
|
if: ${{ always() && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
Reference in New Issue
Block a user