mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Rename main branch
This commit is contained in:
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user