diff --git a/.github/workflows/on-pr-closed.yml b/.github/workflows/on-pr-closed.yml index 0de5120c..c54e244a 100644 --- a/.github/workflows/on-pr-closed.yml +++ b/.github/workflows/on-pr-closed.yml @@ -39,7 +39,7 @@ jobs: - name: "Cleanup" run: | echo "Fetching list of cache key" - cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 ) + cacheKeysForPR=$(gh actions-cache list -R "$REPO" -B "$BRANCH" -L 100 | cut -f 1 ) ## Setting this to not fail the workflow while deleting cache keys. set +e @@ -47,7 +47,7 @@ jobs: for cacheKey in $cacheKeysForPR do echo "Deleting cache key: $cacheKey" - gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm + gh actions-cache delete "$cacheKey" -R "$REPO" -B "$BRANCH" --confirm done echo "Done" env: