Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
snakem982 committed Aug 30, 2024
1 parent 8d53ae6 commit 6ed4509
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/updateclash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,27 @@ on:

jobs:
Build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Git Config
run: |
git config --global user.email [email protected]
git config --global user.name snakem982
persist-credentials: false
fetch-depth: 0

- name: Update Clash
run: |
wget -O source/clash-meta.yaml ${{ secrets.CLASH_API }}
- name: Git Push
- name: Commit files
run: |
git add .
git commit -m "update clash-meta.yaml"
git push origin main
git config --local user.email "[email protected]"
git config --local user.name "snakem982"
git commit -a -m "update clash-meta.yaml"
- name: Git Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit 6ed4509

Please sign in to comment.