Skip to content

chore(storage): remove form-data dependency use native globals and update package scripts #290

chore(storage): remove form-data dependency use native globals and update package scripts

chore(storage): remove form-data dependency use native globals and update package scripts #290

Workflow file for this run

name: librarian tidy
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tidy-check:
name: Verify librarian.yaml is tidy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: changes
with:
filters: |
librarian:
- 'librarian.yaml'
# Version of librarian is pulled from librarian.yaml,
# action is pinned to commit SHA to satisfy blanket security policy.
- uses: googleapis/librarian@35997441eafc2b02716804f9baba1e3f04f8a44f # v0.31.1
- name: Run librarian tidy
if: steps.changes.outputs.librarian == 'true'
run: librarian tidy
- name: Check for diff
if: steps.changes.outputs.librarian == 'true'
run: |
if ! git diff --exit-code; then
V=$(librarian config get version 2>/dev/null || echo "latest")
echo "librarian.yaml is not tidy. Please run:"
echo ""
echo " librarian tidy"
echo ""
echo "to tidy librarian.yaml and commit the changes."
exit 1
fi