Skip to content

Commit 0145fe4

Browse files
committed
chore(CI): add if condition to check release published
1 parent ef682d2 commit 0145fe4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/backend-build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ jobs:
5050

5151
needs:
5252
- release
53+
54+
if: ${{ needs.release.outputs.new_release_published }}
55+
5356
steps:
5457
- uses: actions/checkout@v2
5558
- name: Docker meta
59+
if: ${{ needs.release.outputs.new_release_published }}
5660
id: docker_meta
5761
uses: docker/metadata-action@v3
5862
with:
@@ -79,6 +83,7 @@ jobs:
7983
password: ${{ secrets.GITHUB_TOKEN }}
8084

8185
- name: Build and push
86+
if: ${{ needs.release.outputs.new_release_published }}
8287
uses: docker/build-push-action@v2
8388
with:
8489
context: ./server

0 commit comments

Comments
 (0)