Skip to content

Commit

Permalink
Added a build step to fail PRs when they silently fail. h/t @thomassth
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Oct 21, 2024
1 parent 1afb066 commit bd68cd5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ jobs:
# Done manually so we can checkout submodule
checkout: false

- name: Fail if PR portion of build failed
if: ${{ github.event_name == 'pull_request_target' }}
shell: bash
env:
DIRECTORY: dist/storybook-bundle/PR-${{ github.event.number }}
run: |
if [ ! -d "$DIRECTORY" ]; then
echo Pull Request build directory "$DIRECTORY does not exist."
exit 1
fi
# See: https://github.com/ouzi-dev/commit-status-updater/pull/533
- uses: patcon/commit-status-updater@patch-1
if: ${{ github.event_name == 'pull_request_target' }}
Expand Down

0 comments on commit bd68cd5

Please sign in to comment.