From 13bec2b56289da2ec0dea4deacb033d398c03299 Mon Sep 17 00:00:00 2001 From: Ronen Lubin <63970571+ronenlu@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:23:42 +0200 Subject: [PATCH] gen: pass the branch to the template dynamically (#325) --- gen/atlas.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/atlas.tmpl b/gen/atlas.tmpl index b7e03a2..ca2c753 100644 --- a/gen/atlas.tmpl +++ b/gen/atlas.tmpl @@ -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 }}