Skip to content

Commit

Permalink
Fix exitcode
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Dec 15, 2023
1 parent 1576506 commit 891935c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ jobs:
id: plan
run: |
cd tf
set +e
nix shell --inputs-from . nixpkgs#opentofu --command tofu plan -detailed-exitcode -out tfplan
export exitcode=$?
set -e
echo "exitcode=$exitcode" >> "$GITHUB_OUTPUT"
if [ $exitcode -eq 1 ]; then
exit 1
Expand Down

0 comments on commit 891935c

Please sign in to comment.