Commit fb369b0
Fix script not found error by returning to source branch after push
The workflow was failing with "No such file or directory" when trying to run check_screenshot_changes.sh because:
- update_screenshot_branch.sh switches to the pr-screenshot orphan branch
- After pushing, it didn't return to the original branch
- The next workflow step tries to run check_screenshot_changes.sh
- But that script doesn't exist on pr-screenshot branch (only on PR branch)
Fixed by adding code at the end of update_screenshot_branch.sh to checkout the source branch after pushing. This ensures subsequent workflow steps can access scripts from the PR branch.
Now the workflow will:
1. Generate screenshots on PR branch
2. Switch to pr-screenshot branch and push screenshots
3. Return to PR branch
4. Run check_screenshot_changes.sh (script now available)
5. Comment on PR with changed screenshots
Co-authored-by: richardthe3rd <573334+richardthe3rd@users.noreply.github.com>1 parent 5be0a71 commit fb369b0
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
| |||
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
0 commit comments