Skip to content

Commit

Permalink
Update ci.yml: Handle pull for main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
iuliaturc authored Oct 9, 2024
1 parent b473cb8 commit cd01bf0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ jobs:
- name: Pull latest changes
run: |
git pull --rebase origin ${{ github.event.pull_request.head.ref }}
if [ "${{ github.event_name }}" = "pull_request" ]; then
git pull --rebase origin ${{ github.event.pull_request.head.ref }}
else
git pull --rebase origin main
fi
- name: Push changes
if: success()
Expand Down

0 comments on commit cd01bf0

Please sign in to comment.