Skip to content

Commit

Permalink
Add saltwood-wf.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mxmilu666 committed Jul 14, 2024
1 parent 7e4a65a commit 02d4e09
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/saltwood-wf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: saltwood-wf

on:
push:
branches: [ main ] # 触发分支

jobs:
updatecache:
runs-on: ubuntu-latest

steps:
- name: updatecache
env:
TOKEN: ${{ secrets.MY_TOKEN_SECRET }}
run: |
# 构建 URL
URL="http://saltwood.top:9393/93AtHome/update_files?token=$TOKEN"
# 使用 curl 发送
RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}\n" $URL)
# 检查状态码
if [ "$RESPONSE_CODE" -eq 204 ]; then
echo "╰(*°▽°*)╯ All OK!"
else
echo "(┬┬﹏┬┬) Unexpected response code: $RESPONSE_CODE"
exit 1
fi
Binary file removed Dongyanmio/想草米露姐姐.jpg
Binary file not shown.

0 comments on commit 02d4e09

Please sign in to comment.