Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ jobs:

REPO={% raw %}${{ github.repository }}{% endraw %}
BRANCH={% raw %}${{ github.ref }}{% endraw %}
## This is wrong!!
## If invoked by a closing PR, BRANCH ends up to be the base branch, e.g. master.
## This job will then remove exactly the wrong caches.
## HARMFUL EXAMPLE, should be fixed immediately by some knowledgeable person.

echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )
Expand Down