Skip to content

Commit

Permalink
fix: update GitHub Actions workflow to fallback to 'main' branch if b…
Browse files Browse the repository at this point in the history
…ase ref is not set
  • Loading branch information
mikita-sakalouski committed Oct 29, 2024
1 parent c9190ba commit e324ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Fetch target branch
run: git fetch origin ${{ github.event.pull_request.base.ref}}:${{ github.event.pull_request.base.ref}}
run: git fetch origin ${{ github.event.pull_request.base.ref || 'main'}}:${{ github.event.pull_request.base.ref || 'main'}}
- name: Check changes
id: check
run: |
Expand Down

0 comments on commit e324ce2

Please sign in to comment.