Skip to content

Commit 32523a6

Browse files
committed
fix: open PR before updating screenshots
1 parent d73a528 commit 32523a6

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ jobs:
5252
run: |
5353
git config --global user.name "github-actions[bot]"
5454
git config --global user.email "github-actions[bot]@users.noreply.github.com"
55+
# Create a branch and open a PR (unique branch name based on run id)
56+
BRANCH="update-screenshots-${{ github.run_id }}"
57+
git checkout -b "$BRANCH"
58+
# Open PR
59+
gh pr create \
60+
--base main \
61+
--head "$BRANCH" \
62+
--title "ci: update screenshots" \
63+
--body "Update screenshots"
64+
5565
git add .
5666
git commit -m 'ci: update screenshots' --allow-empty
57-
git push
67+
git push origin "$BRANCH"

0 commit comments

Comments
 (0)