Rename main branch

This commit is contained in:
Andrew Dryga
2023-01-22 22:16:23 -06:00
parent 8a02629163
commit b5ff85c276

View File

@@ -216,10 +216,10 @@ jobs:
run: mix deps.get --only $MIX_ENV
- name: Compile
run: mix compile
- name: Download main branch DB dump
- name: Download master branch DB dump
id: download-artifact
uses: dawidd6/action-download-artifact@v2
if: "!contains(github.ref, 'main')"
if: "!contains(github.ref, 'master')"
with:
branch: master
name: db-dump
@@ -231,7 +231,7 @@ jobs:
run: |
mix ecto.create
- name: Restore DB dump
if: "!contains(github.ref, 'main')"
if: "!contains(github.ref, 'master')"
env:
PGPASSWORD: postgres
run: |
@@ -240,7 +240,7 @@ jobs:
run: |
mix ecto.migrate
- name: Dump DB
if: "contains(github.ref, 'main')"
if: "contains(github.ref, 'master')"
env:
PGPASSWORD: postgres
run: |
@@ -249,8 +249,8 @@ jobs:
--file apps/fz_http/priv/repo/structure.sql \
--no-acl \
--no-owner
- name: Upload main branch DB dump
if: "contains(github.ref, 'main')"
- name: Upload master branch DB dump
if: "contains(github.ref, 'master')"
uses: actions/upload-artifact@v3
with:
name: db-dump