Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow_dispatch #439

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading