Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/librarian_config_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: check that Librarian and legacylibrarian configs are consistent
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
config-check:
Comment thread
jskeet marked this conversation as resolved.
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/config.yaml'
- '.librarian/state.yaml'
- name: Config check
id: config-check
if: steps.filter.outputs.librarian == 'true'
run: |
V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
go run "github.com/googleapis/librarian/tool/cmd/configcheck@${V}" .
Comment thread
parthea marked this conversation as resolved.
- name: Report any failures
if: failure() && steps.config-check.outcome == 'failure'
run: |
echo "Library configuration is different between state.yaml and librarian.yaml.
Update library configuration in the configs according to the error message and
regenerate libraries using:

V=\$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
go run github.com/googleapis/librarian/cmd/librarian@\${V} generate --all
Comment thread
parthea marked this conversation as resolved.
"
# Make sure this step fails too, so that it's highlighted in the action logs.
exit 1
3 changes: 3 additions & 0 deletions librarian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ default:
libraries:
- name: bigframes
version: 2.39.0
skip_release: true
Comment thread
jskeet marked this conversation as resolved.
Comment thread
jskeet marked this conversation as resolved.
python:
library_type: INTEGRATION
- name: bigquery-magics
Expand Down Expand Up @@ -1933,6 +1934,7 @@ libraries:
version: 3.10.1
apis:
- path: google/storage/v2
skip_release: true
Comment thread
jskeet marked this conversation as resolved.
Comment thread
jskeet marked this conversation as resolved.
python:
library_type: GAPIC_MANUAL
opt_args_by_api:
Expand Down Expand Up @@ -2194,6 +2196,7 @@ libraries:
default_version: v1
- name: google-crc32c
version: 1.8.0
skip_release: false
python:
library_type: OTHER
- name: google-geo-type
Expand Down
Loading