Skip to content

Commit 538b318

Browse files
committed
fix: create PR to update the screenshots
1 parent 32523a6 commit 538b318

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/run-tests-example-apps.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515

1616
permissions:
1717
contents: write
18+
pull-requests: write
1819

1920
jobs:
2021
run-tests-example-apps:
@@ -52,16 +53,19 @@ jobs:
5253
run: |
5354
git config --global user.name "github-actions[bot]"
5455
git config --global user.email "github-actions[bot]@users.noreply.github.com"
56+
5557
# Create a branch and open a PR (unique branch name based on run id)
5658
BRANCH="update-screenshots-${{ github.run_id }}"
5759
git checkout -b "$BRANCH"
60+
git add .
61+
git commit -m 'ci: update screenshots' --allow-empty
62+
63+
# Push changes
64+
git push origin "$BRANCH"
65+
5866
# Open PR
5967
gh pr create \
6068
--base main \
6169
--head "$BRANCH" \
6270
--title "ci: update screenshots" \
63-
--body "Update screenshots"
64-
65-
git add .
66-
git commit -m 'ci: update screenshots' --allow-empty
67-
git push origin "$BRANCH"
71+
--body "Automated update of visual test screenshots from GitHub Actions workflow."

0 commit comments

Comments
 (0)