Skip to content

Commit

Permalink
Treat ids as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ohinds committed Aug 25, 2023
1 parent 5f9cf5f commit d78e65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/guide-notebooks-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
EC2_INSTANCE_ID: ${{ needs.start_ec2_runner.outputs.EC2_INSTANCE_ID }}
run: |
set -xe
if [[ $(ec2metadata --instance-id) -ne ${EC2_INSTANCE_ID} ]]; then
if [[ "$(ec2metadata --instance-id)" -ne "${EC2_INSTANCE_ID}" ]]; then
echo "Running on the wrong instance! Bailing, but try rerunning"
exit 1
fi
Expand Down

0 comments on commit d78e65e

Please sign in to comment.