File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 :
@@ -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."
You can’t perform that action at this time.
0 commit comments