summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2023-04-11 04:39:28 -0400
committerGitHub <noreply@github.com>2023-04-11 04:39:28 -0400
commit016fa1e19b2265babe98cec43404c2f992336b34 (patch)
tree20b6e20bdf0a9649bae43d012130319fbc3eb8b3 /.github
parent62474be52a5b5f02165874569c52862bfed98fd2 (diff)
ci: run wf cache clear script twice with delays (#1093)
* ci: run wf cache clear script twice with delays * reduce
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/clear-workflow-cache.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/clear-workflow-cache.yml b/.github/workflows/clear-workflow-cache.yml
index edcc083a..6439ff6a 100644
--- a/.github/workflows/clear-workflow-cache.yml
+++ b/.github/workflows/clear-workflow-cache.yml
@@ -26,11 +26,19 @@ jobs:
with:
fetch-depth: 1
- - run: |
+ # We run each script twice with a small delay in between to try and catch everything.
+ - name: Clear cache
+ run: |
if [[ -n "${{ github.event.schedule }}" ]]; then
python ./scripts/clear_cache.py keep-master
+ sleep 5
+ python ./scripts/clear_cache.py keep-master
elif [[ -z "${{ github.event.inputs.id }}" ]]; then
python ./scripts/clear_cache.py ${{ github.event.pull_request.number }}
+ sleep 5
+ python ./scripts/clear_cache.py ${{ github.event.pull_request.number }}
else
python ./scripts/clear_cache.py ${{ github.event.inputs.id }}
+ sleep 5
+ python ./scripts/clear_cache.py ${{ github.event.inputs.id }}
fi