Skip to content

Commit

Permalink
Update and rename sync-main-master.yml to sync-default-branch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns authored May 14, 2024
1 parent 5aaf2ba commit ba6c692
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ba6c692

Please sign in to comment.