Skip to content

Release Updates to GRPC Clients #134

Release Updates to GRPC Clients

Release Updates to GRPC Clients #134

on:
workflow_run:
workflows: [Release]
types: [completed]
workflow_dispatch:
inputs:
tag:
description: Flipt release version tag to generate
required: true
name: Release Updates to GRPC Clients
jobs:
release_client:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.FLIPT_RELEASE_BOT_APP_ID }}
private_key: ${{ secrets.FLIPT_RELEASE_BOT_APP_PEM }}
installation_id: ${{ secrets.FLIPT_RELEASE_BOT_INSTALLATION_ID }}
- name: Trigger Workflow (Dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
gh workflow run proto-upgrade.yml -R flipt-io/flipt-grpc-go -f tag="${{ inputs.tag }}"
gh workflow run proto-upgrade.yml -R flipt-io/flipt-grpc-ruby -f tag="${{ inputs.tag }}"
gh workflow run proto-upgrade.yml -R flipt-io/flipt-grpc-dotnet -f tag="${{ inputs.tag }}"
- name: Trigger Workflow (Release)
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }}
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
tag=$(echo $GITHUB_REF_NAME)
gh workflow run proto-upgrade.yml -R flipt-io/flipt-grpc-go -f tag="${tag}"
gh workflow run proto-upgrade.yml -R flipt-io/flipt-grpc-ruby -f tag="${tag}"
gh workflow run proto-upgrade.yml -R flipt-io/flipt-grpc-dotnet -f tag="${tag}"