Skip to content

Commit fdb58d0

Browse files
fix workflow syntax
1 parent 577bf0e commit fdb58d0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/publish-central.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66
jobs:
77
publish:
8-
if: github.event_name == 'release' || contains(github.event.head_commit.message, '[release snapshot]')
8+
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[release snapshot]')
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4

.github/workflows/publish-github.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ on:
55
types: [published]
66
jobs:
77
publish:
8-
if: github.event_name == 'release' || contains(github.event.head_commit.message, '[release snapshot]')
8+
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[release snapshot]')
99
runs-on: ubuntu-latest
10-
if: startsWith(github.ref, 'refs/tags/') # only allow publishing tagged versions
1110
steps:
1211
- uses: actions/checkout@v4
1312
- uses: actions/setup-java@v4

0 commit comments

Comments
 (0)