Skip to content

Commit 2200a43

Browse files
committed
Add skip_github_release option to Manual Release. (google-gemini#8932)
1 parent fda62c0 commit 2200a43

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/actions/publish-release/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ inputs:
2727
previous-tag:
2828
description: 'The previous tag to use for generating release notes.'
2929
required: true
30+
skip-github-release:
31+
description: 'Whether to skip creating a GitHub release.'
32+
type: 'boolean'
33+
required: false
34+
default: false
3035
working-directory:
3136
description: 'The working directory to run the steps in.'
3237
required: false
@@ -132,7 +137,7 @@ runs:
132137
133138
- name: '🎉 Create GitHub Release'
134139
working-directory: '${{ inputs.working-directory }}'
135-
if: "${{ inputs.dry-run == 'false' }}"
140+
if: "${{ inputs.dry-run == 'false' && inputs.skip-github-release == 'false' }}"
136141
env:
137142
GITHUB_TOKEN: '${{ inputs.github-token }}'
138143
shell: 'bash'

.github/workflows/release-manual.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ on:
3131
required: false
3232
type: 'boolean'
3333
default: false
34+
skip_github_release:
35+
description: 'Select to skip creating a GitHub release and create a npm release only.'
36+
required: false
37+
type: 'boolean'
38+
default: false
3439

3540
jobs:
3641
release:
@@ -80,3 +85,4 @@ jobs:
8085
github-token: '${{ secrets.GITHUB_TOKEN }}'
8186
dry-run: '${{ github.event.inputs.dry_run }}'
8287
previous-tag: '${{ steps.release_info.outputs.PREVIOUS_TAG }}'
88+
skip-github-release: '${{ github.event.inputs.skip_github_release }}'

0 commit comments

Comments
 (0)