diff --git a/.github/workflows/client-libraries-pull-request.yaml b/.github/workflows/client-libraries-pull-request.yaml index 90c9e458..bdd782e8 100644 --- a/.github/workflows/client-libraries-pull-request.yaml +++ b/.github/workflows/client-libraries-pull-request.yaml @@ -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" @@ -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 @@ -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: