aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-12-12 16:55:23 +0100
committerGitHub <[email protected]>2022-12-12 15:55:23 +0000
commitb2a72bc969dbd4f4e6e8645c03e4366556c63ab4 (patch)
treee748bb7018e9e7087287de5cab5d78d2a7360091 /.github/workflows
parent49fcb3b7c73b1591aae299ca7a959ffa7c0ab176 (diff)
downloadfaker-b2a72bc969dbd4f4e6e8645c03e4366556c63ab4.tar.xz
faker-b2a72bc969dbd4f4e6e8645c03e4366556c63ab4.zip
infra: don't fail when updating snapshots (#1656)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pr.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 3287587a..8e533add 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -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
@@ -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