Skip to content

notify-bzlmod-archive #163

notify-bzlmod-archive

notify-bzlmod-archive #163

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 }}'