Skip to content

Commit

Permalink
Fix syntax in gh api call (for real this time)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmogan committed Feb 4, 2025
1 parent 89cc43a commit fbaf971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/slack-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Get workflow failures from GitHub API
run: |
gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs \
| jq '[.jobs[] | select(.conclusion != "success") | {job: .name, conclusion: .conclusion, steps: [.steps[] | select(.conclusion == "failure") | {name: .name}]}]'
| jq '[.jobs[] | select(.conclusion != "success") | {job: .name, conclusion: .conclusion, steps: [.steps[] | select(.conclusion == "failure") | {name: .name}]}]' \
| tee failed_jobs.json
- name: Parse GitHub API output
run: |
Expand Down

0 comments on commit fbaf971

Please sign in to comment.