Skip to content

Bump python requirements #119

Bump python requirements

Bump python requirements #119

name: Bump python requirements
env:
HOMEBREW_NO_AUTO_UPDATE: 1
# typically used for bazel internal testing: changes outputRoot, sets idletimeout to ~15s
TEST_TMPDIR: /tmp/bazel
on:
schedule:
#- cron: '30 5 15 * *' # 15th of every month, 05:30
#- cron: '30 5 * 6 *' # Satuday every week, 05:30
- cron: '30 14 * * *'
jobs:
create-pull-request:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
# action runners have bazelisk: https://github.com/bazelbuild/bazel/issues/11062
- run: mkdir -p "${TEST_TMPDIR}"
- name: Mount bazel cache # Optional
uses: actions/cache@v4
with:
# needs to be an absolute path, not a variable; I've made it match TEST_TMPDIR above
path: /tmp/bazel
key: _bazel_runner
- name: Update requirements
# https://stackoverflow.com/questions/68057744/create-pull-request-with-github-action
run: |
bazel run //lib/python:requirements.update || true
bazel run //lib/python:vendor_requirements
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
add-paths: |
lib/python/*.txt
lib/gen/*.bzl
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: bump python requirements'
title: 'Bump Python Requirements'
body: >
This PR is auto-generated by
[create-pull-request](https://github.com/peter-evans/create-pull-request).
labels: dependencies
branch: chore/bump-python-requirements