Commit 7ca4cb7 1 parent ba06db3 commit 7ca4cb7 Copy full SHA for 7ca4cb7
File tree 1 file changed +22
-3
lines changed
1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Links
2
2
3
+ # cSpell:ignore nvmrc opentelemetrybot
3
4
on :
4
5
merge_group :
5
6
pull_request :
@@ -44,10 +45,28 @@ jobs:
44
45
45
46
- run : npm run log:check:links
46
47
continue-on-error : true
47
- - name : Any files need updating?
48
+
49
+ - name : Push changes if any, and fail check
48
50
run : |
49
- echo "If the diff fails due to .htmltest, then either run 'npm run fix:htmltest-config' locally or '/fix:htmltest-config' in GitHub"
50
- npm run _diff:fail
51
+ if [[ $(git status --porcelain) ]]; then
52
+ echo "Changes detected in the refcache etc:"
53
+ git status --short
54
+
55
+ echo "\nPushing changes to PR."
56
+ git config --local user.email "$USER_EMAIL"
57
+ git config --local user.name "$USER_NAME"
58
+ git add -A
59
+ git commit -m "Updates from build-and-check-links workflow"
60
+ git push
61
+
62
+ echo "Failing workflow so that changes can be reviewed, and checks rerun."
63
+ exit 1
64
+ fi
65
+ env :
66
+ GH_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
67
+
68
+ USER_NAME : opentelemetrybot
69
+
51
70
- uses : actions/upload-artifact@v4
52
71
with :
53
72
name : build-log-etc
You can’t perform that action at this time.
0 commit comments