diff --git a/.github/workflows/config_check.yml b/.github/workflows/config_check.yml new file mode 100644 index 000000000000..24767dd07583 --- /dev/null +++ b/.github/workflows/config_check.yml @@ -0,0 +1,40 @@ +--- +name: config check +on: + pull_request: + push: + branches: + - main +permissions: + contents: read +jobs: + config-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + # Use this action, rather than a file filter so that we can make this + # mandatory. + # See https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-including-branches + # for more details. + - uses: dorny/paths-filter@v4 + id: filter + with: + filters: | + librarian: + - 'librarian.yaml' + - '.librarian/**' + - name: Config check + if: steps.filter.outputs.librarian == 'true' + run: | + V="$(sed -n 's/^version: *//p' librarian.yaml)" + go run "github.com/googleapis/librarian/tool/cmd/configcheck@${V}" . + - name: Update library versions and regenerate + if: failure() + run: | + echo "Library version is different between state.yaml and librarian.yaml. + Update versions in the configs according to the error message and + regenerate libraries using: + + V=\$(sed -n 's/^version: *//p' librarian.yaml) + go run github.com/googleapis/librarian/cmd/librarian@\${V} generate --all + " diff --git a/internal/generated/snippets/pubsub/v2/apiv1/snippet_metadata.google.pubsub.v1.json b/internal/generated/snippets/pubsub/v2/apiv1/snippet_metadata.google.pubsub.v1.json index 0b0ceed421a7..91584fa82796 100644 --- a/internal/generated/snippets/pubsub/v2/apiv1/snippet_metadata.google.pubsub.v1.json +++ b/internal/generated/snippets/pubsub/v2/apiv1/snippet_metadata.google.pubsub.v1.json @@ -8,7 +8,7 @@ ], "language": "GO", "name": "cloud.google.com/go/pubsub/v2/apiv1", - "version": "2.5.0" + "version": "2.5.1" }, "snippets": [ { diff --git a/librarian.yaml b/librarian.yaml index 3256cbafb874..fbf2100e2bde 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -939,7 +939,7 @@ libraries: - README.md - internal/version.go - name: pubsub - version: 1.50.1 + version: 1.50.2 keep: - README.md - internal/version.go @@ -947,7 +947,7 @@ libraries: go: nested_module: v2 - name: pubsub/v2 - version: 2.5.0 + version: 2.5.1 apis: - path: google/pubsub/v1 keep: diff --git a/pubsub/internal/version.go b/pubsub/internal/version.go index 057380beb1d8..49f33b425ad5 100644 --- a/pubsub/internal/version.go +++ b/pubsub/internal/version.go @@ -17,4 +17,4 @@ package internal // Version is the current tagged release of the library. -const Version = "1.50.1" +const Version = "1.50.2" diff --git a/pubsub/v2/internal/version.go b/pubsub/v2/internal/version.go index caf2a4a7816b..469b4e4e11b5 100644 --- a/pubsub/v2/internal/version.go +++ b/pubsub/v2/internal/version.go @@ -17,4 +17,4 @@ package internal // Version is the current tagged release of the library. -const Version = "2.5.0" +const Version = "2.5.1"