Skip to content

Commit

Permalink
Ignore generate error on base
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed Oct 11, 2023
1 parent ab719b6 commit f5d11f4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,28 @@ jobs:
run: |
cd /tmp
mv -v html html.pr
- uses: actions/checkout@v4
- name: Checkout base
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.sha }}
- name: Install dependencies
- name: Install dependencies (base)
run: bundle install
- name: Run rake
- name: Run rake (base)
run: bundle exec rake
id: generate_base
continue-on-error: true
- name: Rename generated html and generate diff
run: |
cd /tmp
mv -v html html.base
git diff --no-index html.base html.pr --stat || true
git diff --no-index html.base html.pr --output artifact/html.diff || true
if: ${{ steps.generate_base.outcome == 'success' }}
- uses: actions/upload-artifact@v3
with:
name: diff-${{ matrix.os }}-${{ matrix.ruby }}
path: /tmp/artifact/html.diff
if: ${{ steps.generate_base.outcome == 'success' }}

misspell:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f5d11f4

Please sign in to comment.