Skip to content

Commit

Permalink
Don't fail if errors occurred when updating snapshots (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval authored Jan 10, 2023
1 parent 90260d2 commit 6a7248a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/update-snapshots/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
description: The playwright browser to install (one of [`chromium`, `firefox`, `webkit`])
required: false
default: chromium
continue_on_error:
description: Whether to continue on error when updating snapshots or not.
required: false
default: true
dry_run:
description: Whether this is a dry run (one of [`yes`, `no`])
required: false
Expand Down Expand Up @@ -72,6 +76,8 @@ runs:
timeout: 360000

- name: Generate new snapshots
# Get as much update as possible
continue-on-error: ${{ inputs.continue_on_error }}
shell: bash -l {0}
working-directory: ${{ inputs.test_folder }}
run: yarn run ${{ inputs.update_script }}
Expand Down

0 comments on commit 6a7248a

Please sign in to comment.