diff options
author | sr55 <[email protected]> | 2020-06-26 23:14:32 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2020-06-26 23:14:32 +0100 |
commit | 2981513414b7070a75c04ee12cc05c5a7614b550 (patch) | |
tree | eb73a4275da317ab36169f3c1f1842feb4cd6be8 | |
parent | 2820d150eddd1db357b70913e8dc99bb8606bffd (diff) |
Github Actions: Attempt to fix failing builds on pull requests. GITHUB_TOKEN is not accessible when running a PR so don't try running the tidy up old artifacts step.
-rw-r--r-- | .github/workflows/mac.yml | 2 | ||||
-rw-r--r-- | .github/workflows/windows.yml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index a4e613570..939ed5ccb 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -46,7 +46,7 @@ jobs: - name: Tidy up past artifacts uses: kolpav/purge-artifacts-action@v1 - if: github.repository == 'HandBrake/HandBrake' + if: github.event_name != 'pull_request' with: token: ${{ secrets.GITHUB_TOKEN }} expire-in: 3days diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e535f8737..bf0099126 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -117,7 +117,7 @@ jobs: - name: Tidy up past artifacts uses: kolpav/purge-artifacts-action@v1 - if: github.repository == 'HandBrake/HandBrake' + if: github.event_name != 'pull_request' with: token: ${{ secrets.GITHUB_TOKEN }} expire-in: 3days |