Skip to content

Commit

Permalink
Add workflow_dispatch (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
njooma authored Jan 6, 2025
1 parent c5306f1 commit 36cccbf
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/update_protos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Update Protos + Open PR

on:
workflow_dispatch:
inputs:
api_version:
description: 'The version number of the API in buf.build'
type: string
required: true

repository_dispatch:
types:
- protos-updated
Expand All @@ -16,10 +22,16 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4

- name: Update api
- name: Update API
if: ${{ !inputs.api_version }} # called from outside
run: |
echo ${{ github.event.client_payload.tag }} > api_version.lock
- name: Update API
if: ${{ inputs.api_version }} # called manually
run: |
echo ${{ inputs.api_version }} > api_version.lock
- name: Add + Commit + Open PR
uses: peter-evans/create-pull-request@v7
with:
Expand Down

0 comments on commit 36cccbf

Please sign in to comment.