Skip to content

Commit 36cccbf

Browse files
authored
Add workflow_dispatch (#439)
1 parent c5306f1 commit 36cccbf

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/update_protos.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Update Protos + Open PR
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
api_version:
7+
description: 'The version number of the API in buf.build'
8+
type: string
9+
required: true
10+
511
repository_dispatch:
612
types:
713
- protos-updated
@@ -16,10 +22,16 @@ jobs:
1622
- name: Checkout Code
1723
uses: actions/checkout@v4
1824

19-
- name: Update api
25+
- name: Update API
26+
if: ${{ !inputs.api_version }} # called from outside
2027
run: |
2128
echo ${{ github.event.client_payload.tag }} > api_version.lock
2229
30+
- name: Update API
31+
if: ${{ inputs.api_version }} # called manually
32+
run: |
33+
echo ${{ inputs.api_version }} > api_version.lock
34+
2335
- name: Add + Commit + Open PR
2436
uses: peter-evans/create-pull-request@v7
2537
with:

0 commit comments

Comments
 (0)