Skip to content

Commit fba6ca7

Browse files
committed
Regenerate with include_imports"
1 parent 363012c commit fba6ca7

6 files changed

Lines changed: 679 additions & 126 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Called update for API change"
2+
on:
3+
repository_dispatch:
4+
types: ["api_update"]
5+
jobs:
6+
test:
7+
name: "Create PR for API update"
8+
timeout-minutes: 10
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
- name: "Update Buf Script"
14+
id: buf-update
15+
uses: authzed/actions/buf-api-update@main
16+
with:
17+
api-commit: "${{ github.event.client_payload.BUFTAG }}"
18+
spec-path: buf.gen.yaml
19+
file-format: "buf-gen-yaml"
20+
- name: "Output update status"
21+
env:
22+
UPDATED_STATUS: ${{ steps.buf-update.outputs.updated }}
23+
run: |
24+
echo "Update status: $UPDATED_STATUS"
25+
- name: "Install buf"
26+
uses: "bufbuild/buf-setup-action@v1.43.0"
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
if: steps.buf-update.outputs.updated == 'true'
30+
- name: "Run buf generate"
31+
if: steps.buf-update.outputs.updated == 'true'
32+
run: "buf generate"
33+
- name: Create Pull Request
34+
uses: peter-evans/create-pull-request@v7.0.5
35+
if: steps.buf-update.outputs.updated == 'true'
36+
with:
37+
delete-branch: "true"
38+
title: "Update API to ${{ github.event.client_payload.BUFTAG }}"
39+
branch: "api-change/${{ github.event.client_payload.BUFTAG }}"
40+
base: "main"
41+
token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: Update for API change
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
buftag:
7+
description: Tag or commit from https://buf.build/authzed/api/tags/main
8+
required: true
9+
type: string
10+
jobs:
11+
test:
12+
name: "Create PR for API update"
13+
timeout-minutes: 10
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
- name: "Update Buf Script"
19+
id: buf-update
20+
uses: authzed/actions/buf-api-update@main
21+
with:
22+
api-commit: ${{ inputs.buftag }}
23+
spec-path: buf.gen.yaml
24+
file-format: "buf-gen-yaml"
25+
- name: "Output update status"
26+
env:
27+
UPDATED_STATUS: ${{ steps.buf-update.outputs.updated }}
28+
run: |
29+
echo "Update status: $UPDATED_STATUS"
30+
- name: "Install buf"
31+
uses: "bufbuild/buf-setup-action@v1.43.0"
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
if: steps.buf-update.outputs.updated == 'true'
35+
- name: "Run buf generate"
36+
if: steps.buf-update.outputs.updated == 'true'
37+
run: "buf generate"
38+
- name: Create Pull Request
39+
uses: peter-evans/create-pull-request@v7.0.5
40+
if: steps.buf-update.outputs.updated == 'true'
41+
with:
42+
delete-branch: "true"
43+
title: Update API to ${{ inputs.buftag }}
44+
branch: api-change/${{ inputs.buftag }}
45+
base: "main"
46+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)