build: use variable instead of repository name
This commit is contained in:
parent
6f7b068361
commit
fdee04195f
3
.github/workflows/backup.yml
vendored
3
.github/workflows/backup.yml
vendored
@ -22,7 +22,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Add Gitea remote
|
- name: Add Gitea remote
|
||||||
run: |
|
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
|
- name: Push to Gitea
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user