@@ -40,13 +40,18 @@ jobs:
40
40
steps :
41
41
- name : My Host
42
42
run : |
43
- echo -e "free -h:\n`free -h`"
43
+ sudo apt install -y moreutils # https://unix.stackexchange.com/questions/26728/prepending-a-timestamp-to-each-line-of-output-from-a-command
44
+ echo -e "free -h:\n`free -h`" | ts
45
+ echo
44
46
sudo rm -rf /usr/local/lib/android # release about 12 GB, cost 1min
45
47
sudo rm -rf /usr/share/dotnet # release about 1 GB, cost 2s
46
- echo -e "df -h:\n`df -h`"
47
- echo "pwd: `pwd`"
48
- echo "nproc: `nproc`"
49
- echo -e "curl -s ifconfig.me/all:\n`curl -s ifconfig.me/all`"
48
+ echo -e "df -h:\n`df -h`" | ts
49
+ echo
50
+ echo "pwd: `pwd`" | ts
51
+ echo
52
+ echo "nproc: `nproc`" | ts
53
+ echo
54
+ echo -e "curl -s ifconfig.me/all:\n`curl -s ifconfig.me/all`" | ts
50
55
51
56
- name : Export vars to env
52
57
env :
88
93
run : pip install --upgrade -r requirements.txt
89
94
90
95
- name : Download Page Artifact
91
- uses : dawidd6/action-download-artifact@v2
96
+ uses : dawidd6/action-download-artifact@v3
92
97
with :
93
98
name : ' github-pages'
94
99
path : ' output'
@@ -133,21 +138,21 @@ jobs:
133
138
COZE_BOT_ID : ${{ secrets.COZE_BOT_ID }}
134
139
135
140
- name : Setup Pages
136
- uses : actions/configure-pages@v2
141
+ uses : actions/configure-pages@v4
137
142
138
143
- name : Upload Page Artifact
139
- uses : actions/upload-pages-artifact@v2
144
+ uses : actions/upload-pages-artifact@v3
140
145
with :
141
146
path : ' output'
142
147
retention-days : 7
143
148
144
149
- name : Deploy to GitHub Pages
145
150
id : deployment
146
- uses : actions/deploy-pages@v2
151
+ uses : actions/deploy-pages@v4
147
152
if : ${{ success() }}
148
153
149
154
- name : Deploy to Cloudflare Pages
150
- uses : cloudflare/pages-action@1
155
+ uses : cloudflare/pages-action@v1
151
156
continue-on-error : true # tolerate cloudflare api failure
152
157
if : ${{ success() }}
153
158
with :
0 commit comments