-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|