Skip to content

Commit

Permalink
feat: backup xiaoyahelper
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Feb 8, 2024
1 parent ad2b2cf commit 9ac77bb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/backup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: backup

on:
workflow_dispatch:
push:
pull_request:
schedule:
- cron: '0 */12 * * *'

jobs:

shfmt:
runs-on: ubuntu-latest
name: shfmt
steps:
- name: Checkout
uses: actions/checkout@v4

- name: shfmt
run: |
mv ./xiaoyahelper/aliyun_clear.sh ./xiaoyahelper/aliyun_clear.sh.backup
wget -O ./xiaoyahelper/aliyun_clear.sh https://xiaoyahelper.zengge99.eu.org/aliyun_clear.sh
if [ -f ./xiaoyahelper/aliyun_clear.sh ]; then
rm -rf ./xiaoyahelper/aliyun_clear.sh.backup
else
mv ./xiaoyahelper/aliyun_clear.sh.backup ./xiaoyahelper/aliyun_clear.sh
fi
- uses: stefanzweifel/git-auto-commit-action@4d160c5e4d67c62e67f03ae49aa38359e964139a
with:
commit_message: 'chore: backup xiaoyahelper'
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Empty file added xiaoyahelper/aliyun_clear.sh
Empty file.

0 comments on commit 9ac77bb

Please sign in to comment.