generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 53
36 lines (35 loc) · 1.22 KB
/
mirror.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Mirror Releases
on:
# Trigger manually in the UI
workflow_dispatch:
# Trigger daily at 06:45 UTC
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "45 6 * * *"
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
./lint/mirror_ruff.sh
npx @bazel/buildifier lint/ruff_versions.bzl
bazel run docs:update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore: mirror external releases"
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download and Extract Latest Multitool
run: wget -O- https://github.com/theoremlp/multitool/releases/latest/download/multitool-x86_64-unknown-linux-gnu.tar.xz | tar --strip-components=1 -xJf -
- name: Find Updates and Render Lockfile
run: |
./multitool --lockfile lint/multitool.lock.json update
./multitool --lockfile format/multitool.lock.json update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore: update multitool versions"