Skip to content

Commit 2ea49a8

Browse files
committed
fix tag refs, add tag input, secret input
1 parent 40c2053 commit 2ea49a8

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ on:
2121
- "*.*.*"
2222
workflow_dispatch:
2323
inputs:
24+
tag_name:
25+
required: true
26+
type: string
2427
publish_to_pypi:
2528
description: 'Publish to PyPI'
2629
required: true
2730
type: boolean
2831
default: true
32+
secrets:
33+
publish_token:
34+
required: true
2935

3036
jobs:
3137
release:
@@ -45,13 +51,13 @@ jobs:
4551
prerelease: ${{ contains(github.ref, '-rc') }}
4652
fail_on_unmatched_files: true
4753
files: rules_python-*.tar.gz
48-
tag_name: 1.0.0 # TODO remove
54+
tag_name: ${{ inputs.tag_name || github.ref_name }}
4955

5056
publish:
5157
needs: release
5258
uses: ./.github/workflows/publish.yml
5359
with:
54-
tag_name: ${{ github.ref_name }}
60+
tag_name: ${{ inputs.tag_name || github.ref_name }}
5561
secrets:
5662
BCR_PUBLISH_TOKEN: ${{ secrets.BCR_PUBLISH_TOKEN }}
5763

0 commit comments

Comments
 (0)