Skip to content

Commit

Permalink
Clear nix-installer cache before running EC2 bench workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hanno-becker committed Sep 8, 2024
1 parent 684fdc3 commit d29df0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/bench_ec2_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
label: ${{ steps.start-ec2-runner.outputs.label }}
ec2-instance-id: ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
steps:
- name: Clear nix-installer action cache
- run: |
cache_keys = $(gh cache list -R ${{ github.repository }} -k determinatesystem-nix-installer-aarch64-linux | cut -f 1)
echo "Deleting nix-installer caches..."
for key in $cache_keys
do
gh cache -R $REPO delete $key
done
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down

0 comments on commit d29df0c

Please sign in to comment.