-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add a workflow that updates the gazelle manifest and pushes updates
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |