lotus/.github/workflows/sync-master-main.yaml

15 lines
314 B
YAML
Raw Normal View History

name: sync-master-main
on:
push:
branches:
- master
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: update remote branch main
run: |
# overrides the remote branch (origin:github) `main`
git push origin --force master:main