File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1515
1616permissions :
1717 contents : write
18+ pull-requests : write
1819
1920jobs :
2021 run-tests-example-apps :
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+
57+ # Create a branch and open a PR (unique branch name based on run id)
58+ BRANCH="update-screenshots-${{ github.run_id }}"
59+ git checkout -b "$BRANCH"
5560 git add .
5661 git commit -m 'ci: update screenshots' --allow-empty
57- git push
62+
63+ # Push changes
64+ git push origin "$BRANCH"
65+
66+ # Open PR
67+ gh pr create \
68+ --base main \
69+ --head "$BRANCH" \
70+ --title "ci: update screenshots" \
71+ --body "Automated update of visual test screenshots from GitHub Actions workflow."
You can’t perform that action at this time.
0 commit comments