Skip to content

Commit be881d6

Browse files
authored
feat: 时机不对时取消上传 (#5162)
Update packer.yml
1 parent 284a441 commit be881d6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/packer.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,12 @@ jobs:
176176
- name: Restore Artifacts
177177
uses: actions/download-artifact@v4
178178
with:
179-
path: artifacts/
179+
path: artifacts/
180+
181+
# feat: UTC 20:00~21:00 取消上传(避开远程服务器的4:00-4:10)
182+
- name: Fail at inappropriate time
183+
run: if [ `date -u +%H` -eq 20 ]; then exit -1; fi
184+
shell: bash
180185

181186
- name: Run Uploader
182187
run: .\Uploader --host="${{ secrets.SSH_IP }}" --name="${{ secrets.SSH_USER }}" --password="${{ secrets.SSH_PWD }}"

0 commit comments

Comments
 (0)