Skip to content

proto-upgrade

proto-upgrade #50

Workflow file for this run

on:
workflow_dispatch:
inputs:
tag:
description: Flipt release version tag to generate
required: true
permissions:
contents: write
pull-requests: write
name: proto-upgrade
jobs:
proto-upgrade:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: bufbuild/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate
run: |
buf generate buf.build/flipt-io/flipt
- name: Prepare Branch
env:
GIT_AUTHOR_NAME: flipt-bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: flipt-bot
GIT_COMMITTER_EMAIL: [email protected]
GH_TOKEN: ${{ github.token }}
run: |
git checkout -b "generate/${{ inputs.tag }}"
git add --all .
git commit -m "feat: updates to protobuf definitions for flipt ${{ inputs.tag }}"
git push origin "generate/${{ inputs.tag }}"
gh pr create --title "feat: updates to protobuf definitions for flipt ${{ inputs.tag }}" \
--body "Upgrading generated client to the protobuf definitions found in Flipt ${{ inputs.tag }}."