Skip to content

Commit

Permalink
Update build workflow to summarize results
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicasyu committed Aug 18, 2023
1 parent 1842cfb commit 023ea42
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,26 @@ jobs:
template: docs/_badges/template.svg
overwrite: true

result:
if: ${{ always() }}

runs-on: ubuntu-latest

needs: [build]

steps:

- name: Checkout the repo
uses: actions/checkout@v3

- name: Get build result
run: |
if [[ ${{ needs.build.result }} == "success" || ${{ needs.build.result }} == "skipped" ]]; then
exit 0
else
exit 1
fi
- name: Generate passing badge
if: success()
uses: knightdave/anybadge-action@v1.1.0
Expand Down

0 comments on commit 023ea42

Please sign in to comment.