Skip to content

Commit

Permalink
Flush auto fixer cache once per week (grpc#27650)
Browse files Browse the repository at this point in the history
* cache-invalidation

* ??

* indent

* Update pr-auto-fix.yaml
  • Loading branch information
ctiller authored Oct 8, 2021
1 parent ee47e08 commit da2e8dd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pr-auto-fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ jobs:
runs-on: ubuntu-latest
steps:
# Cache bazel build
- name: Get current time
uses: srfrnk/current-time@master
id: current-time
with:
format: YYYYWW
- name: Cache bazel
uses: actions/cache@v2
env:
cache-name: bazel-cache
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-${{ env.cache-name }}
# formattedTime here is like 202132 - the year concatenated with the week
# as this changes every week, we cycle to a new cache once per week.
key: ${{ runner.os }}-${{ steps.current-time.outputs.formattedTime }}
# Cancel current runs if they're still running
# (saves processing on fast pushes)
- name: Cancel Previous Runs
Expand Down

0 comments on commit da2e8dd

Please sign in to comment.