build(deps): bump flask from 2.2.2 to 2.2.5 in /examples/build_file_generation #9
Workflow file for this run
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
--- | |
name: Update gazelle manifest | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
paths: | |
- 'examples/build_file_generation/requirements*.txt' | |
permissions: | |
pull-requests: write | |
contents: 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: | | |
# If there are no changes, git diff will exit with 0 | |
if git diff --exit-code gazelle_python.yaml >/dev/null; then exit 0; fi | |
git config --global user.email "[email protected]" | |
git config --local user.name "github-actions[bot]" | |
git add gazelle_python.yaml | |
git commit -m "chore: update gazelle_python.yaml" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |