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
Signed-off-by: Hanno Becker <[email protected]>
  • Loading branch information
hanno-becker committed Sep 9, 2024
1 parent 39d1cfa commit a2a9ead
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/bench_ec2_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ 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 ${{ env.REPO }} -k determinatesystem-nix-installer-aarch64-linux | cut -f 1)
echo "Deleting nix-installer caches..."
for key in $cache_keys
do
gh cache -R ${{ env.REPO }} delete $key
done
env:
GH_TOKEN: ${{ secrets.AWS_GITHUB_TOKEN }}
REPO: ${{ github.repository }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down

0 comments on commit a2a9ead

Please sign in to comment.