Skip to content

proto-upgrade

proto-upgrade #55

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@v4
- uses: bufbuild/buf-setup-action@v1.30.0
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: dev@flipt.io
GIT_COMMITTER_NAME: flipt-bot
GIT_COMMITTER_EMAIL: dev@flipt.io
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 }}."