forked from googleapis/google-cloud-go
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 833 Bytes
/
config_check.yml
File metadata and controls
28 lines (27 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
name: config check
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
config-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Config check
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
"