Skip to content

Commit 45152b1

Browse files
committed
fix(workflows): release conditions
1 parent a856c27 commit 45152b1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: Log in to the Container registry
4545
id: docker_login
46-
if: steps.release.outputs.new_release_published == 'true'
46+
if: steps.release_dry_run.outputs.new_release_published == 'true'
4747
# from https://github.com/docker/login-action/commits/master
4848
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
4949
with:
@@ -53,7 +53,7 @@ jobs:
5353

5454
- name: Build and push Docker image (minimal)
5555
id: docker_build_push_minimal
56-
if: steps.release.outputs.new_release_published == 'true'
56+
if: steps.release_dry_run.outputs.new_release_published == 'true'
5757
# from https://github.com/docker/build-push-action/commits/master
5858
uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5
5959
with:
@@ -69,7 +69,7 @@ jobs:
6969
7070
- name: Build and push Docker image (full)
7171
id: docker_build_push_full
72-
if: steps.release.outputs.new_release_published == 'true'
72+
if: steps.release_dry_run.outputs.new_release_published == 'true'
7373
# from https://github.com/docker/build-push-action/commits/master
7474
uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5
7575
with:
@@ -85,6 +85,7 @@ jobs:
8585
8686
- name: Release
8787
id: release
88+
if: steps.release_dry_run.outputs.new_release_published == 'true'
8889
# from https://github.com/cycjimmy/semantic-release-action/commits/main
8990
uses: cycjimmy/semantic-release-action@0a51e81a6baff2acad3ee88f4121c589c73d0f0e # v4.2.0
9091
with:

0 commit comments

Comments
 (0)