22 lines
386 B
YAML
22 lines
386 B
YAML
name: sync-master-main
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
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
|