Skip to content

Update main.yml

Update main.yml #3

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@master # 把 `main` 改成 `master` 或具体的版本号
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ secrets.GIT_REPO_URL}} # 你的远程仓库URL
branch: main
force: true # 使用 "true" 强制推送(当你想要你的变化覆盖远程仓库时)
tags: true # 也推送tags