diff --git a/.github/workflows/sync-main-master.yml b/.github/workflows/sync-default-branch.yml similarity index 58% rename from .github/workflows/sync-main-master.yml rename to .github/workflows/sync-default-branch.yml index 2bd77c7..0b3fafe 100644 --- a/.github/workflows/sync-main-master.yml +++ b/.github/workflows/sync-default-branch.yml @@ -1,10 +1,10 @@ -name: Sync Main-Master +name: Sync Default Branch on: workflow_call jobs: - main-master: + default-branch: runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' + if: github.ref_name == github.event.repository.default_branch steps: - uses: actions/checkout@v4 - run: git push --force origin HEAD:refs/heads/master