Skip to content

Commit a81e8fa

Browse files
committed
ci: fix env install
1 parent f01378f commit a81e8fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
5454
- name: Use base env file if it was changed
5555
run: |
56-
git fetch origin master
57-
if git diff --name-only origin/master | grep '${{ env.BASE_ENV }}'; then
56+
git fetch origin ${{ github.event.repository.default_branch }}
57+
if git diff --name-only origin/${{ github.event.repository.default_branch }} | grep '${{ env.BASE_ENV }}'; then
5858
echo "Base env ${{ env.BASE_ENV }} changed. Using it instead of locked envs."
5959
echo "env_file=${{ env.BASE_ENV }}" >> $GITHUB_ENV
6060
else

0 commit comments

Comments
 (0)