Skip to content

Commit

Permalink
Switch jobs that commits trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
JonCrawford authored Jul 13, 2024
1 parent 86b05cc commit 72cc5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- name: Run dbt cloud job
run: |
RESPONSE=$(curl -v -H "Authorization:Token ${{ secrets.DBTCLOUDAPIKEY }}" -H "Content-Type:application/json" -d '{"cause":"Triggered by Github Actions","git_branch":"main"}' https://cloud.getdbt.com/api/v2/accounts/122779/jobs/166429/run/)
RESPONSE=$(curl -v -H "Authorization:Token ${{ secrets.DBTCLOUDAPIKEY }}" -H "Content-Type:application/json" -d '{"cause":"Triggered by Github Actions","git_branch":"main"}' https://cloud.getdbt.com/api/v2/accounts/122779/jobs/673875/run/)
STATUSCODE=$(echo "$RESPONSE" | jq '.status.code')
echo "$RESPONSE" | jq '.status.user_message'
if [[ $STATUSCODE != 200 ]]; then echo "$RESPONSE" && bash -c "exit 1"; fi

0 comments on commit 72cc5b8

Please sign in to comment.