Skip to content

Commit

Permalink
Try using workflow dispatch to provide inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Feb 28, 2024
1 parent 39ffc4f commit db16b0e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/client-libraries-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ on:
pull_request:
branches:
- master
workflow_dispatch:
inputs:
onfido-node-ship:
description: 'Ship onfido-node?'
required: true
default: 'No'
type: choice
options:
- No
- Yeah, a patch change
- Yeah, a minor change
- Yeah, a major change
jobs:
build_client_libraries:
name: "${{ matrix.generator }}: build library"
Expand Down Expand Up @@ -48,7 +60,7 @@ jobs:
# path: generated/configuration/${{ matrix.generator }}.yaml
# reusable:
create_pr:
name: "${{ matrix.generator }}: commit and create pull request to ${{ matrix.git_repo_id }} repository"
name: "${{ matrix.generator }}: commit and create pull request to ${{ matrix.git_repo_id }} repository (ship: ${{ format('inputs.{0}-ship', matrix.git_repo_id) }})"
runs-on: ubuntu-latest
needs:
- build_client_libraries
Expand All @@ -62,6 +74,8 @@ jobs:
# environment:
# name: ${{ matrix.git_repo }}-generation
# if: github.event_name == 'push'
# if: github.event_name == 'workflow_dispatch' &&
if: ${{ inputs.onfido-node-ship != 'No' }}
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit db16b0e

Please sign in to comment.