Skip to content

Commit 7e066ea

Browse files
committed
chore: update workflow
1 parent b974560 commit 7e066ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88

99
jobs:
1010
release:
11-
if: github.event_name == 'push'
1211
permissions:
1312
# to create release tags (cycjimmy/semantic-release-action)
1413
contents: write
@@ -20,8 +19,10 @@ jobs:
2019
version: ${{ steps.semantic.outputs.new_release_version }}
2120
steps:
2221
- uses: actions/checkout@v3
22+
if: github.event_name == 'push'
2323

2424
- name: Semantic Release
25+
if: github.event_name == 'push'
2526
id: semantic
2627
uses: cycjimmy/semantic-release-action@v4
2728
with:
@@ -32,7 +33,7 @@ jobs:
3233
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3334

3435
publish_image:
35-
needs:
36+
needs:
3637
- release
3738
if: needs.release.outputs.published == 'true' || github.event_name == 'workflow_dispatch'
3839
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)