File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # See https://github.com/bazel-contrib/publish-to-bcr
1+ # Publish new releases to Bazel Central Registry.
22name : Publish to BCR
3-
43on :
54 # Run the publish workflow after a successful release
6- # Can be triggered from the release.yaml workflow
5+ # Will be triggered from the release.yaml workflow
76 workflow_call :
87 inputs :
98 tag_name :
109 required : true
1110 type : string
1211 secrets :
13- BCR_PUBLISH_TOKEN :
12+ publish_token :
1413 required : true
1514 # In case of problems, let release engineers retry by manually dispatching
1615 # the workflow from the GitHub UI
1716 workflow_dispatch :
1817 inputs :
1918 tag_name :
19+ description : git tag being released
2020 required : true
2121 type : string
22-
2322jobs :
2423 publish :
2524 uses : bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.0.0
2625 with :
27- draft : false
2826 tag_name : ${{ inputs.tag_name }}
2927 # GitHub repository which is a fork of the upstream where the Pull Request will be opened.
3028 registry_fork : bazel-contrib/bazel-central-registry
3129 attest : false
3230 permissions :
3331 contents : write
3432 secrets :
35- publish_token : ${{ secrets.BCR_PUBLISH_TOKEN }}
33+ # Necessary to push to the BCR fork, and to open a pull request against a registry
34+ publish_token : ${{ secrets.publish_token || secrets.BCR_PUBLISH_TOKEN }}
You can’t perform that action at this time.
0 commit comments