Skip to content

Commit

Permalink
gen: pass the branch to the template dynamically (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenlu authored Nov 6, 2023
1 parent 75c3dcd commit 13bec2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/atlas.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
env:
GITHUB_TOKEN: {{`${{ github.token }}`}}
- uses: ariga/atlas-action/migrate/push@v1
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/{{ .DefaultBranch }}'
with:
dir: 'file://{{ .Path }}'
{{- with .DirName }}
Expand Down

0 comments on commit 13bec2b

Please sign in to comment.