From a7358fc26af33e2cdb4c4590f9d83324d41ce992 Mon Sep 17 00:00:00 2001 From: MOOn Date: Thu, 11 May 2023 18:51:17 +0800 Subject: [PATCH] Refine Action for Clash --- .gitea/workflows/clash.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/clash.yaml b/.gitea/workflows/clash.yaml index 4e939ba..a766e60 100644 --- a/.gitea/workflows/clash.yaml +++ b/.gitea/workflows/clash.yaml @@ -12,6 +12,11 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Checkout codebase + uses: https://github.com/actions/checkout@v3 + with: + ref: main + - name: Make directory run: | mkdir -p Clash/RuleSet/StreamingMedia @@ -30,8 +35,10 @@ jobs: - name: Git push run: | + git init git config --local user.name "gitea-actions[bot]" git config --local user.email "gitea-actions[bot]@moon.re" git add Clash git commit -m "${{ env.RELEASE_NAME }}" - git push origin automation:main + git remote add origin "https://MOOn:${{ secrets.GT_TOKEN }}@git.moon.re/MOOn/Profiles.git" + git push origin master:main