We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d73a528 commit 85b203cCopy full SHA for 85b203c
1 file changed
.github/workflows/run-tests-example-apps.yml
@@ -15,6 +15,7 @@ on:
15
16
permissions:
17
contents: write
18
+ pull-requests: write
19
20
jobs:
21
run-tests-example-apps:
@@ -52,6 +53,19 @@ jobs:
52
53
run: |
54
git config --global user.name "github-actions[bot]"
55
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"
60
git add .
61
git commit -m 'ci: update screenshots' --allow-empty
- 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."
0 commit comments