Skip to content

Commit 092f75e

Browse files
authored
Fix workflow_dispatch (#262)
- sets prerelease version if `release_type` is set to "prerelease" or "premajor" - fixes `skip_publish` consitional Here is the successful run https://github.com/hazelcast/hazelcast-docs-ui/actions/runs/13819371314/job/38660719763 with 'skip_publish' set to `true` and `release_type` set to "prerelease" result - https://github.com/hazelcast/hazelcast-docs-ui/releases/tag/v4.2.2-beta.2
1 parent 026cf9e commit 092f75e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
with:
6464
auto_increment_type: ${{ github.event.inputs.release_type || 'patch' }}
65+
prerelease: ${{ github.event.inputs.release_type == 'prerelease' || github.event.inputs.release_type == 'premajor' }}
6566
prerelease_suffix: beta
6667
tag_schema: semantic
6768
- name: Upload release asset
@@ -74,7 +75,7 @@ jobs:
7475
asset_name: ui-bundle.zip
7576
asset_content_type: application/zip
7677
publish:
77-
if: ${{ github.event.inputs.skip_publish != true }}
78+
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' && github.event.inputs.skip_publish == false }}
7879
runs-on: ubuntu-latest
7980
needs: release
8081
steps:

0 commit comments

Comments
 (0)