File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,11 @@ jobs:
84
84
fi
85
85
NEW_BASELINE=1 pytest -m regression
86
86
87
- # The following will not work if the PR is initiated from a fork. In this case
88
- # we create a new PR to update the baseline (see below).
89
- # Only run if baseline generation succeeded
87
+ # Pushing to the PR branch does not work if the PR is initiated from a fork. This is
88
+ # because the GITHUB_TOKEN has read-only access by default for workflows triggered by
89
+ # fork PRs. Hence we have to create a new PR to update the baseline (see below).
90
90
- name : Commit and push to PR branch (non-fork)
91
+ # Only run if baseline generation succeeded
91
92
if : success() && steps.update-baseline.outcome == 'success' && !fromJson(steps.check-fork.outputs.result)
92
93
run : |
93
94
git add -f tests/regression_test_baselines.json # since it's in .gitignore
You can’t perform that action at this time.
0 commit comments