Skip to content

Commit

Permalink
Merge pull request #52 from fcollonval/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Feb 25, 2022
2 parents 403eca3 + 3e7afee commit 2362eb6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/actions/update-snapshots/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,23 @@ runs:
find . -wholename "*-snapshots/*.png" -exec optipng {} \;
- name: Commit new snapshots
if: ${{ inputs.dry_run != 'yes' }}
shell: bash -l {0}
working-directory: ${{ inputs.test_folder }}
run: |
git config user.name '${{ inputs.git_username }}'
git config user.email '${{ inputs.git_email }}'
git pull
git add ${{ inputs.test_folder }}/*-snapshots/*.*
git add ./*-snapshots/*.*
git commit -m "Update Playwright Snapshots"
env:
GITHUB_TOKEN: ${{ inputs.github_token }}

- name: Push new snapshots
if: ${{ inputs.dry_run != 'yes' }}
shell: bash -l {0}
working-directory: ${{ inputs.test_folder }}
run: |
git push
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
Expand Down

0 comments on commit 2362eb6

Please sign in to comment.