Skip to content

Commit

Permalink
Skip smoketests if they were already performed
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Mar 2, 2024
1 parent f607837 commit 48303d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/upload-legacy-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ jobs:
image_ids='${{ steps.upload_smoke_test_ami.outputs.image_ids }}'
image_id=$(echo "$image_ids" | jq -r '.["${{ vars.AWS_REGION }}"]')
run_id='${{ github.run_id }}'
nix run .#smoke-test -- --image-id "$image_id" --run-id "$run_id"
nix run .#smoke-test -- --image-id "$image_id"
- name: Clean up smoke test
if: ${{ cancelled() }}
run: |
image_ids='${{ steps.upload_smoke_test_ami.outputs.image_ids }}'
image_id=$(echo "$image_ids" | jq -r '.["${{ vars.AWS_REGION }}"]')
run_id='${{ github.run_id }}'
nix run .#smoke-test -- --image-id "$image_id" --run-id "$run_id" --cancel
nix run .#smoke-test -- --image-id "$image_id" --cancel

# NOTE: We do not pass run-id as we're not building the image ourselves
Expand Down

0 comments on commit 48303d2

Please sign in to comment.