diff --git a/.github/workflows/sync-default-branch.yml b/.github/workflows/sync-default-branch.yml new file mode 100644 index 00000000..9d122c79 --- /dev/null +++ b/.github/workflows/sync-default-branch.yml @@ -0,0 +1,19 @@ +name: Sync Default Branch +on: + push: { branches: main } + workflow_dispatch: +permissions: {} + +jobs: + sync: + permissions: {contents: write} + uses: nodenv/.github/.github/workflows/sync-default-branch.yml@v5 + +# One-time commands for users to switch-over: +# +# ```console +# git branch -m master main +# git fetch origin +# git branch -u origin/main main +# git remote set-head origin -a +# ```