-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 1.27 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
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
env:
GH_TOKEN: ${{ github.token }}