File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -72,17 +72,20 @@ jobs:
72
72
ref : main
73
73
fetch-depth : 0
74
74
path : www-releases
75
+ persist-credentials : false
75
76
76
77
- name : Upload Release Notes
77
78
if : env.upload
78
79
env :
79
- WWW_RELEASES_TOKEN : ${{ secrets.WWW_RELEASES_TOKEN }}
80
+ GH_TOKEN : ${{ secrets.WWW_RELEASES_TOKEN }}
80
81
run : |
81
- mkdir -p ../www-releases/${{ inputs.release-version }}
82
- mv ./docs-build/html-export/* ../www-releases/${{ inputs.release-version }}
83
- cd ../www-releases
82
+ mkdir -p www-releases/${{ inputs.release-version }}
83
+ mv ./docs-build/html-export/* www-releases/${{ inputs.release-version }}
84
+ cd www-releases
85
+ git checkout -b ${{ inputs.release-version }}
84
86
git add ${{ inputs.release-version }}
85
87
git config user.email "[email protected] "
86
88
git config user.name "llvmbot"
87
89
git commit -a -m "Add ${{ inputs.release-version }} documentation"
88
- git push "https://[email protected] /${{ github.repository_owner }}/www-releases" main:main
90
+ git push --force "https://[email protected] /llvmbot/www-releases.git" HEAD:refs/heads/${{ inputs.release-version }}
91
+ gh pr create -f -B main -H ${{ inputs.release-version }} -R llvmbot/www-releases
You can’t perform that action at this time.
0 commit comments