Skip to content

Commit

Permalink
fix(ci): fix fetching of main on backmerge action
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlescano committed Jan 3, 2025
1 parent 2f3afbf commit 7e6feed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/backmerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1 # Only fetch last commit
ref: dev # Checkout dev branch
fetch-tags: false # Don't fetch tags
fetch-depth: 0
ref: dev
fetch-tags: false

- name: Configure Git
run: |
Expand All @@ -28,7 +28,9 @@ jobs:
- name: Merge main into dev
id: merge
continue-on-error: true
run: git merge origin/main --no-edit
run: |
git fetch origin main
git merge origin/main --no-edit
- name: Push if merge successful
if: steps.merge.outcome == 'success'
Expand Down

0 comments on commit 7e6feed

Please sign in to comment.