Skip to content

test

test #28

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Sync to Gitee

Invalid workflow file

The workflow is not valid. .github/workflows/gitee-sync.yml (Line: 19, Col: 14): Unrecognized named-value: 'TEST_A'. Located at position 1 within expression: TEST_A
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 }}
env
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"