Skip to content

Commit

Permalink
ci: add a workflow that updates the gazelle manifest and pushes updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aignas committed Feb 16, 2024
1 parent bf25496 commit 8215de8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/examples_build_file_generation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Update gazelle manifest
on:
pull_request:
types:
- opened
- synchronize
paths:
- 'examples/build_file_generation/requirements*.txt'

permissions:
pull-requests: write

jobs:
update:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update gazelle manifest
working-directory: examples/build_file_generation
run: |
bazel run //:gazelle_python_manifest.update
- name: Update gazelle manifest
working-directory: examples/build_file_generation
run: |
git add gazelle_python.yaml
git commit -m "chore: update gazelle_python.yaml"
git push -u origin HEAD

0 comments on commit 8215de8

Please sign in to comment.