add workflow

main
snakem982 1 year ago
parent 8d53ae6875
commit 6ed4509cbe

@ -9,24 +9,27 @@ on:
jobs: jobs:
Build: Build:
permissions: write-all
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
with: with:
token: ${{ secrets.GITHUB_TOKEN }} persist-credentials: false
fetch-depth: 0
- name: Git Config
run: |
git config --global user.email snakem982@gmail.com
git config --global user.name snakem982
- name: Update Clash - name: Update Clash
run: | run: |
wget -O source/clash-meta.yaml ${{ secrets.CLASH_API }} wget -O source/clash-meta.yaml ${{ secrets.CLASH_API }}
- name: Git Push - name: Commit files
run: | run: |
git add . git config --local user.email "snakem982@gmail.com"
git commit -m "update clash-meta.yaml" git config --local user.name "snakem982"
git push origin main 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 }}

Loading…
Cancel
Save