Skip to content

Commit

Permalink
chore(deps): update actions/cache action to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and chickenandpork committed Jun 19, 2024
1 parent 0a5808e commit d0b088b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: echo "${{ secrets.PRIVATE_GPG_KEY }}" | gpg2 --import
- run: gpg2 --list-secret-keys
- name: Mount bazel cache # Optional
uses: actions/cache@v3
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
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/cron-bump-requirements.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,47 @@
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
push:
branches:
- 'feat/cron-bump-python-requirements'

#- 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
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@v3
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
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/*
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
This PR is auto-generated by
[create-pull-request](https://github.com/peter-evans/create-pull-request).
labels: dependencies
branch: chore/bump-python-requirements

0 comments on commit d0b088b

Please sign in to comment.