proto-upgrade #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/buf-setup-action@v1.26.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 }}." |