Skip to content

Commit 6596189

Browse files
committed
chore: address some review comments
1 parent 51f9400 commit 6596189

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/librarian_config_check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ jobs:
2626
- name: Config check
2727
if: steps.filter.outputs.librarian == 'true'
2828
run: |
29-
V="$(sed -n 's/^version: *//p' librarian.yaml)"
29+
V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
3030
go run "github.com/googleapis/librarian/tool/cmd/configcheck@${V}" .
3131
- name: Update library versions and regenerate
32-
if: failure()
32+
if: steps.config-check.outcome == 'failure'
3333
run: |
3434
echo "Library configuration is different between state.yaml and librarian.yaml.
3535
Update library configuration in the configs according to the error message and
3636
regenerate libraries using:
3737
38-
V=\$(sed -n 's/^version: *//p' librarian.yaml)
38+
V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
3939
go run github.com/googleapis/librarian/cmd/librarian@\${V} generate --all
4040
"

0 commit comments

Comments
 (0)