Skip to content

Commit 52224a3

Browse files
committed
ci: skip docker-publish when no new version is released
Expose the release job's tag output at the job level and gate docker-publish on it, so the floating :15/:17 Docker tags are no longer overwritten on commits that don't bump CLOUDSYNC_VERSION.
1 parent 92e0949 commit 52224a3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ jobs:
360360
name: release
361361
needs: [build, postgres-test, postgres-build]
362362
if: github.ref == 'refs/heads/main'
363+
outputs:
364+
version: ${{ steps.tag.outputs.version }}
363365

364366
env:
365367
GH_TOKEN: ${{ github.token }}
@@ -590,7 +592,7 @@ jobs:
590592
runs-on: ubuntu-22.04
591593
name: docker ${{ matrix.image }} pg${{ matrix.pg_major }}
592594
needs: [release]
593-
if: github.ref == 'refs/heads/main'
595+
if: github.ref == 'refs/heads/main' && needs.release.outputs.version != ''
594596

595597
env:
596598
DOCKERHUB_ORG: sqlitecloud

0 commit comments

Comments
 (0)