Skip to content
Merged
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
17 changes: 16 additions & 1 deletion .github/workflows/librarian_generation_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@
# limitations under the License.
name: Librarian - Generate diff check on pull requests
on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
library_generation:
runs-on: ubuntu-24.04
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -70,3 +76,12 @@ jobs:
echo "Regeneration produced code changes! Please run 'librarian generate --all' to update the generated files."
exit 1
fi
- name: Create issue if previous step fails
if: ${{ failure() && github.ref == 'refs/heads/main' }}
uses: googleapis/librarian/.github/actions/create-issue-on-failure@main
with:
title: "Librarian generate diff check failed on main branch"
body: |
The librarian generate diff check failed on main branch.

Please check the logs: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Loading