Skip to content

Commit c3906a7

Browse files
committed
fix(CI): only publish when semantic release
1 parent d4bf5f8 commit c3906a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
new_release_minor_version: ${{ steps.semantic.outputs.new_release_minor_version }}
2020
new_release_patch_version: ${{ steps.semantic.outputs.new_release_patch_version }}
2121
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
22+
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
2223

2324
steps:
2425
- uses: actions/checkout@v2
@@ -40,7 +41,7 @@ jobs:
4041
docker_release:
4142
runs-on: ubuntu-latest
4243

43-
if: ${{ github.ref == 'refs/heads/master' }}
44+
if: ${{ github.ref == 'refs/heads/master' && needs.build_and_release.outputs.new_release_published == 'true' }}
4445

4546
needs:
4647
- build_and_release
@@ -86,4 +87,4 @@ jobs:
8687
tags: ${{ steps.meta.outputs.tags }}
8788
labels: ${{ steps.meta.outputs.labels }}
8889
platforms: linux/amd64,linux/arm64
89-
push: ${{ github.event_name != 'pull_request' }}
90+
push: ${{ github.event_name != 'pull_request' }}

0 commit comments

Comments
 (0)