Skip to content

Commit

Permalink
Merge pull request #26 from angadhn/angadhn-patch-1
Browse files Browse the repository at this point in the history
Update check-sync.yml
  • Loading branch information
angadhn authored Sep 6, 2024
2 parents 7ba9482 + 85d9708 commit e5bede8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/check-sync.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Check Sync with Main
name: Check Sync with Master

on:
pull_request:
types: [synchronize, opened, reopened]
push:
branches:
- main
- master

jobs:
check-sync:
Expand All @@ -21,11 +21,11 @@ jobs:

- name: Fetch main branch
run: |
git fetch origin main
git fetch origin master
- name: Check if branch is up-to-date with main
- name: Check if branch is up-to-date with master
run: |
git merge-base --is-ancestor origin/main HEAD
git merge-base --is-ancestor origin/master HEAD
- name: Fail if not up-to-date
if: failure()
run: |
Expand Down

0 comments on commit e5bede8

Please sign in to comment.