chore: fix actions

This commit is contained in:
Orion Kindel 2023-07-18 21:38:07 -05:00
parent 94ab122d74
commit 9abd45a999
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719
2 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
name: 'migrate-devel' name: 'migrate-devel'
on: {push: {tags: ['devel@*']}} on: { push: { branches: ['migrations'] } }
jobs: jobs:
migrate-devel: migrate-devel:
@ -8,8 +8,8 @@ jobs:
volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock'] volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock']
steps: steps:
- uses: 'actions/checkout@v3' - uses: 'actions/checkout@v3'
with: { fetch-depth: 0 } with: { fetch-depth: 0, ref: 'main' }
- run: './scripts/migrate.sh ${{ gitea.ref_name }} --greenlight' - run: './scripts/migrate.sh'
env: env:
DOCKER_HOST: 'unix:///run/user/1001/docker.sock' DOCKER_HOST: 'unix:///run/user/1001/docker.sock' # HACK: rootless docker on gitea action runner
POSTGRES_URI: '${{ secrets.POSTGRES_DEVEL_URI }}' POSTGRES_URI: '${{ secrets.POSTGRES_DEVEL_URI }}'

View File

@ -1,5 +1,5 @@
name: 'migrate-stage' name: 'migrate-stage'
on: {push: {tags: ['stage@*']}} on: { push: { branches: ['migrations'] } }
jobs: jobs:
migrate-stage: migrate-stage:
@ -8,8 +8,8 @@ jobs:
volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock'] volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock']
steps: steps:
- uses: 'actions/checkout@v3' - uses: 'actions/checkout@v3'
with: { fetch-depth: 0 } with: { fetch-depth: 0, ref: 'main' }
- run: './scripts/migrate.sh ${{ gitea.ref_name }} --greenlight' - run: './scripts/migrate.sh'
env: env:
DOCKER_HOST: 'unix:///run/user/1001/docker.sock' DOCKER_HOST: 'unix:///run/user/1001/docker.sock' # HACK: rootless docker on gitea action runner
POSTGRES_URI: '${{ secrets.POSTGRES_STAGE_URI }}' POSTGRES_URI: '${{ secrets.POSTGRES_STAGE_URI }}'