-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into u/qedi-r/category-none
- Loading branch information
Showing
102 changed files
with
2,548 additions
and
2,412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: /update-vrt | ||
on: | ||
issue_comment: | ||
types: [ created ] | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.issue.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
update-vrt: | ||
name: Update VRT | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.event.issue.pull_request && | ||
contains(github.event.comment.body, '/update-vrt') | ||
container: | ||
image: mcr.microsoft.com/playwright:v1.41.1-jammy | ||
steps: | ||
- name: Get PR branch | ||
# Until https://github.com/xt0rted/pull-request-comment-branch/issues/322 is resolved we use the forked version | ||
uses: gotson/pull-request-comment-branch@head-repo-owner-dist | ||
id: comment-branch | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ steps.comment-branch.outputs.head_owner }}/${{ steps.comment-branch.outputs.head_repo }} | ||
ref: ${{ steps.comment-branch.outputs.head_ref }} | ||
- name: Set up environment | ||
uses: ./.github/actions/setup | ||
- name: Wait for Netlify build to finish | ||
id: netlify | ||
env: | ||
COMMIT_SHA: ${{ steps.comment-branch.outputs.head_sha }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./.github/actions/netlify-wait-for-build | ||
- name: Run VRT Tests on Netlify URL | ||
run: yarn vrt --update-snapshots | ||
env: | ||
E2E_START_URL: ${{ steps.netlify.outputs.url }} | ||
- name: Commit and push changes | ||
run: | | ||
git config --system --add safe.directory "*" | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git add "**/*.png" | ||
if git diff --staged --quiet; then | ||
echo "No changes to commit" | ||
exit 0 | ||
fi | ||
git commit -m "Update VRT" | ||
git push origin HEAD:${{ steps.comment-branch.outputs.head_ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.