Skip to content

Commit 6f1a3c3

Browse files
committed
ci: simplify release workflow conditions
Removes redundant `github.event_name == 'release'` check in release workflow. The workflow now relies solely on tag-based triggers for consistency.
1 parent 3b415aa commit 6f1a3c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
id-token: write
3030
needs:
3131
- build
32-
if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/v')
32+
if: startsWith(github.ref, 'refs/tags/v')
3333
runs-on: ubuntu-latest
3434
concurrency:
3535
group: ${{ github.workflow }}-${{ github.ref }}-publish
@@ -85,7 +85,7 @@ jobs:
8585
contents: write
8686
needs:
8787
- build
88-
if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/v')
88+
if: startsWith(github.ref, 'refs/tags/v')
8989
runs-on: ubuntu-latest
9090
concurrency:
9191
group: ${{ github.workflow }}-${{ github.ref }}-release
@@ -104,4 +104,4 @@ jobs:
104104
uses: liblaf/actions/release@main
105105
with:
106106
files: dist/*
107-
tag: ${{ github.event.release.tag_name || github.ref_name }}
107+
tag: ${{ github.ref_name }}

0 commit comments

Comments
 (0)