Skip to content

Commit

Permalink
Update amplify list-jobs command
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeshovich authored Nov 4, 2024
1 parent 03fe219 commit 78a5871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ write_output () {

get_status () {
local status;
status=$(aws amplify list-jobs --app-id "$APP_ID" --branch-name "$BRANCH_NAME" | jq -r ".jobSummaries[] | select(.commitId == \"$COMMIT_ID\") | .status" | head -n 1)
status=$(aws amplify list-jobs --app-id "$APP_ID" --branch-name "$BRANCH_NAME" | jq -r ".jobSummaries[0].status")
exit_status=$?
# it seems like sometimes status ends up with a new line in it?
# strip it out
Expand Down

0 comments on commit 78a5871

Please sign in to comment.