File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 24
24
pull-requests : write
25
25
contents : write
26
26
steps :
27
+ - uses : actions/checkout@v4
28
+ with :
29
+ ref : gh-pages
30
+
27
31
- name : Download and Extract Artifacts
28
32
uses : dawidd6/action-download-artifact@v6
29
33
with :
@@ -110,7 +114,9 @@ jobs:
110
114
111
115
- name : Create output folder
112
116
if : ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
113
- run : mkdir -p runtime-tests-results
117
+ run : |
118
+ rm -rf artifacts
119
+ mkdir -p runtime-tests-results
114
120
115
121
- name : Generate badge
116
122
if : ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
@@ -121,9 +127,11 @@ jobs:
121
127
output : runtime-tests-results/badge.svg
122
128
color : ${{ job.status == 'success' && 'green' || 'red' }}
123
129
124
- - name : Deploy badge
130
+ - name : Push badge
125
131
if : ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
126
- uses : peaceiris/actions-gh-pages@v3
127
- with :
128
- github_token : ${{ secrets.GITHUB_TOKEN }}
129
- publish_dir : ./runtime-tests-results/badge.svg
132
+ run : |
133
+ git config user.name "github-actions[bot]"
134
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
135
+ git add --all
136
+ git commit -m "Updated runtime tests badge"
137
+ git push origin HEAD:gh-pages
You can’t perform that action at this time.
0 commit comments