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

21 lines
372 B
YAML
Raw Normal View History

name: sync-master-main
on:
push:
branches:
- master
permissions: {}
jobs:
sync:
permissions:
contents: write
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