Skip to content

Commit

Permalink
Add debug statement to review cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
timsaucer committed May 20, 2024
1 parent 39e6951 commit 6ee5061
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,26 @@ jobs:
fail-on-cache-miss: true
restore-keys: tpch-data-

- name: Test keys
run: |
gh extension install actions/gh-actions-cache
echo "Fetching list of cache key"
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
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
echo $cacheKey
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge

- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
id: rust-toolchain
Expand Down

0 comments on commit 6ee5061

Please sign in to comment.