Skip to content

Commit 2bcc41a

Browse files
committed
chore: add skip deploy to maven central option
1 parent 7ce6f39 commit 2bcc41a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release-master.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ name: Release Master
33
on:
44
workflow_dispatch:
55
branches: ["master"]
6+
inputs:
7+
skip_deploy:
8+
description: 'Skip maven deploy (use if artifacts already published to Central)'
9+
required: false
10+
default: 'false'
11+
type: choice
12+
options:
13+
- 'false'
14+
- 'true'
615

716
jobs:
817
build:
@@ -60,7 +69,7 @@ jobs:
6069
git config --global hub.protocol https
6170
git remote set-url origin https://\${{ secrets.GITHUB_TOKEN }}:x-oauth-basic@github.com/swagger-api/swagger-codegen.git
6271
- name: Run maven deploy/release
63-
if: env.RELEASE_OK == 'yes'
72+
if: env.RELEASE_OK == 'yes' && github.event.inputs.skip_deploy != 'true'
6473
run: |
6574
mvn --no-transfer-progress -B -Prelease deploy
6675
- name: Set up QEMU

0 commit comments

Comments
 (0)