-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (31 loc) · 1.24 KB
/
notify-bzlmod-archive.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
name: Notify Bzlmod Archive
on:
repository_dispatch:
types: [notify-bzlmod-archive]
jobs:
create-pr:
name: add ${{ github.event.client_payload.repo }} ${{ github.event.client_payload.tag_name }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/cache@v3
with:
path: |
~/.cache/bazelisk
~/.cache/bazel-disk-cache
key: ${{runner.os}}-bazel-cache
- uses: actions/setup-go@v4
- run: go install github.com/bazelbuild/buildtools/buildozer@latest
- uses: actions/checkout@v4
with:
repository: bazelboost/registry
- run: bazelisk run --config=ci //tools:add_module_version -- -archive="${{ github.event.client_payload.archive }}"
- name: create pull request
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'chore: add ${{ github.event.client_payload.repo }} ${{ github.event.client_payload.tag_name }}'
title: 'chore: add ${{ github.event.client_payload.repo }} ${{ github.event.client_payload.tag_name }}'
body: ''
branch: 'add-${{ github.event.client_payload.repo }}-${{ github.event.client_payload.tag_name }}'