From fdee04195faa5bbba81609b13571c883f30d2cba Mon Sep 17 00:00:00 2001 From: biggerfish Date: Thu, 6 Jun 2024 21:59:04 +0800 Subject: [PATCH] build: use variable instead of repository name --- .github/workflows/backup.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backup.yml b/.github/workflows/backup.yml index f79524f..507547a 100644 --- a/.github/workflows/backup.yml +++ b/.github/workflows/backup.yml @@ -22,7 +22,8 @@ jobs: - name: Add Gitea remote run: | - git remote add gitea https://yu:${{secrets.GITEA_TOKEN}}@git.zhiyong.tech/yu/real_trader.git + REPO_NAME=$(basename ${{ github.repository }}) + git remote add gitea https://yu:${{secrets.GITEA_TOKEN}}@git.zhiyong.tech/yu/$REPO_NAME.git - name: Push to Gitea run: |