juliaturc commited on
Commit
dd8d125
·
1 Parent(s): ddd6e87

Update ci.yml: Handle pull for main branch

Browse files
Files changed (1) hide show
  1. .github/workflows/ci.yml +5 -1
.github/workflows/ci.yml CHANGED
@@ -48,7 +48,11 @@ jobs:
48
 
49
  - name: Pull latest changes
50
  run: |
51
- git pull --rebase origin ${{ github.event.pull_request.head.ref }}
 
 
 
 
52
 
53
  - name: Push changes
54
  if: success()
 
48
 
49
  - name: Pull latest changes
50
  run: |
51
+ if [ "${{ github.event_name }}" = "pull_request" ]; then
52
+ git pull --rebase origin ${{ github.event.pull_request.head.ref }}
53
+ else
54
+ git pull --rebase origin main
55
+ fi
56
 
57
  - name: Push changes
58
  if: success()