Skip to content

Add workflow to publish a release to the bcr. #4

Add workflow to publish a release to the bcr.

Add workflow to publish a release to the bcr. #4

name: "Push release to BCR"
on:
pull_request:
branches: [ "main" ]
inputs:
version:
required: true
default: "1.2.0"
type: "string"
types:
- synchronize
workflow_dispatch:
inputs:
version:
required: true
default: "1.2.0"
type: "string"
permissions:
id-token: write
attestations: write
contents: write
jobs:
publish:
name: "Publish to BCR"
permissions:
attestations: write
contents: write
id-token: write
uses: "bazel-contrib/publish-to-bcr/.github/workflows/[email protected]"
with:
tag_name: "${{ inputs.version }}"
module_version: "TOAST${{ inputs.version }}"

Check failure on line 38 in .github/workflows/publish_to_bcr.yml

View workflow run for this annotation

GitHub Actions / Push release to BCR

Invalid workflow file

The workflow is not valid. .github/workflows/publish_to_bcr.yml (Line: 38, Col: 23): Invalid input, module_version is not defined in the referenced workflow.
tag_prefix: ""
# registry_fork: "bazel-contrib/bazel-central-registry"
registry_fork: "aiuto/bazel-central-registry"
draft: false
secrets:
publish_token: "${{ secrets.BCR_PUBLISH_TOKEN }}"