Skip to content

notify-bzlmod-archive #116

notify-bzlmod-archive

notify-bzlmod-archive #116

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/checkout@v4
with:
repository: ecsact-dev/bazel_registry
- run: sudo curl -sL https://github.com/seaube/bzlcmd/releases/download/0.2.2/bzlreg-linux-amd64 -o /usr/bin/bzlreg && sudo chmod +x /usr/bin/bzlreg
- run: bzlreg add-module "${{ 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 }}"
- name: enable automerge
run: gh pr merge add-${{ github.event.client_payload.repo }}-${{ github.event.client_payload.tag_name }} --auto -s
env:
GH_TOKEN: ${{ github.token }}