Skip to content

Create sync.yml

Create sync.yml #1

Workflow file for this run

name: Sync to Remote Repository
on:
push:
branches:
- main # 或者你的默认分支名称
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout source repository
uses: actions/checkout@v2
- name: Push to remote repository
uses: ad-m/github-push-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
remote_repo: ${{ secrets.GIT_REPO_URL}} # 你的远程仓库URL
force: true # 使用 "true" 强制推送(当你想要你的变化覆盖远程仓库时)
tags: true # 也推送tags