Skip to content

Commit

Permalink
infra: don't fail when updating snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Dec 11, 2022
1 parent 9a12261 commit 57a8630
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ jobs:
CYPRESS_INSTALL_BINARY: 0

- name: Generate code
id: generate
run: |
pnpm run generate:locales
pnpm run generate:api-docs
pnpm run build
pnpm run test -u
continue-on-error: true

- name: Check diff
id: diff
Expand All @@ -56,8 +58,8 @@ jobs:
with:
script: |
const script = require('${{ github.workspace }}/.github/workflows/commentCodeGeneration.js')
await script(github, context, ${{ steps.diff.outcome == 'success' }})
await script(github, context, ${{ steps.generate.outcome == 'success' && steps.diff.outcome == 'success' }})
- name: Status
if: ${{ steps.diff.outcome == 'failure' }}
if: ${{ steps.generate.outcome == 'failure' || steps.diff.outcome == 'failure' }}
run: exit 1

0 comments on commit 57a8630

Please sign in to comment.