We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f01378f commit a81e8faCopy full SHA for a81e8fa
1 file changed
.github/workflows/test.yaml
@@ -53,8 +53,8 @@ jobs:
53
54
- name: Use base env file if it was changed
55
run: |
56
- git fetch origin master
57
- if git diff --name-only origin/master | grep '${{ env.BASE_ENV }}'; then
+ git fetch origin ${{ github.event.repository.default_branch }}
+ if git diff --name-only origin/${{ github.event.repository.default_branch }} | grep '${{ env.BASE_ENV }}'; then
58
echo "Base env ${{ env.BASE_ENV }} changed. Using it instead of locked envs."
59
echo "env_file=${{ env.BASE_ENV }}" >> $GITHUB_ENV
60
else
0 commit comments