test #27
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
on: | ||
push: | ||
branches: | ||
- master | ||
- test/gitee-sync | ||
tags: | ||
- "*" | ||
name: Sync to Gitee | ||
jobs: | ||
run: | ||
name: Run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
- name: Set up SSH | ||
run: | | ||
Check failure on line 19 in .github/workflows/gitee-sync.yml GitHub Actions / Sync to GiteeInvalid workflow file
|
||
mkdir -p ~/.ssh | ||
echo ${{ vars.GITEE_PRIVATE_SSH_KEY }} > ~/.ssh/id_rsa | ||
cat ~/.ssh/id_rsa | ||
echo ${{ secrets.GITEE_PRIVATE_SSH_KEY }} | ||
echo ${{ secrets.GITEE_TOKEN }} | ||
echo ${{ vars.TEST_A }} | ||
echo ${{ TEST_A }} | ||
echo $TEST_A | ||
chmod 600 ~/.ssh/id_rsa | ||
ssh-keyscan gitee.com >> ~/.ssh/known_hosts | ||
- name: Push to Gitee | ||
run: | | ||
git remote add gitee [email protected]:johng/gf.git | ||
git push -f gitee test/gitee-sync | ||
# - name: Mirror GitHub to Gitee | ||
# uses: Yikun/[email protected] | ||
# with: | ||
# src: github/gogf | ||
# dst: gitee/johng | ||
# dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} | ||
# dst_token: ${{ secrets.GITEE_TOKEN }} | ||
# src_account_type: org | ||
# dst_account_type: user | ||
# timeout: 600 | ||
# debug: true | ||
# force_update: true | ||
# static_list: "gf" |