Skip to content

Commit df98355

Browse files
authored
Update release.yaml
1 parent 24d576e commit df98355

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/release.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ on:
2222
description: 'The version to release'
2323
required: true
2424
type: string
25-
sonatype_auto_publish:
26-
description: 'Automatically publish the release to Sonatype'
27-
type: boolean
28-
required: true
29-
default: false
25+
base_tag:
26+
description: 'Existing git tag to build the release from. If not set, the latest commit will be used.'
27+
required: false
28+
type: string
3029
continue_if_tag_exists:
3130
description: 'Continue the workflow even if the GitHub tag already exists'
3231
type: boolean
@@ -35,7 +34,7 @@ on:
3534

3635
jobs:
3736
release:
38-
uses: google/j2cl/.github/workflows/release_common.yaml@master
37+
uses: ./.github/workflows/release_common.yaml
3938

4039
permissions:
4140
# Permissions for creating a github release.
@@ -47,8 +46,8 @@ jobs:
4746
# Pass the inputs from the manual trigger to the reusable workflow.
4847
with:
4948
version: ${{ github.event.inputs.version }}
50-
publish_to_sonatype: true
51-
sonatype_auto_publish: ${{ github.event.inputs.sonatype_auto_publish == 'true' }}
49+
publish_to_sonatype: false
50+
base_tag: ${{ if github.event.inputs.base_tag }}
5251
continue_if_tag_exists: ${{ github.event.inputs.continue_if_tag_exists == 'true' }}
5352

5453
# Allow the reusable workflow to access the secrets.

0 commit comments

Comments
 (0)