diff --git a/.gitea/workflows/migrate-devel.yml b/.gitea/workflows/migrate-devel.yml index 1987211..0751b2f 100644 --- a/.gitea/workflows/migrate-devel.yml +++ b/.gitea/workflows/migrate-devel.yml @@ -1,5 +1,5 @@ name: 'migrate-devel' -on: {push: {tags: ['devel@*']}} +on: { push: { branches: ['migrations'] } } jobs: migrate-devel: @@ -8,8 +8,8 @@ jobs: volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock'] steps: - uses: 'actions/checkout@v3' - with: { fetch-depth: 0 } - - run: './scripts/migrate.sh ${{ gitea.ref_name }} --greenlight' + with: { fetch-depth: 0, ref: 'main' } + - run: './scripts/migrate.sh' 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 }}' diff --git a/.gitea/workflows/migrate-stage.yml b/.gitea/workflows/migrate-stage.yml index 96b2ced..f4adaf9 100644 --- a/.gitea/workflows/migrate-stage.yml +++ b/.gitea/workflows/migrate-stage.yml @@ -1,5 +1,5 @@ name: 'migrate-stage' -on: {push: {tags: ['stage@*']}} +on: { push: { branches: ['migrations'] } } jobs: migrate-stage: @@ -8,8 +8,8 @@ jobs: volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock'] steps: - uses: 'actions/checkout@v3' - with: { fetch-depth: 0 } - - run: './scripts/migrate.sh ${{ gitea.ref_name }} --greenlight' + with: { fetch-depth: 0, ref: 'main' } + - run: './scripts/migrate.sh' 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 }}'