File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ name: Update Protos + Open PR
22
33on :
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 :
You can’t perform that action at this time.
0 commit comments