We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2089052 commit 9954104Copy full SHA for 9954104
.github/workflows/shared_cleanup_branch_caches.yml
@@ -6,6 +6,10 @@ on:
6
types:
7
- closed
8
workflow_dispatch:
9
+ inputs:
10
+ pr_number:
11
+ required: true
12
+ type: string
13
14
jobs:
15
cleanup:
@@ -23,13 +27,13 @@ jobs:
23
27
24
28
## Setting this to not fail the workflow while deleting cache keys.
25
29
set +e
26
- echo "Deleting caches..."
30
for cacheKey in $cacheKeysForPR
31
do
32
gh cache delete $cacheKey
33
+ echo "Deleting $cacheKey"
34
done
35
echo "Done"
36
env:
37
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38
GH_REPO: ${{ github.repository }}
- BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge
39
+ BRANCH: refs/pull/${{ inputs.pr_number || github.event.pull_request.number }}/merge
0 commit comments