diff --git a/.github/workflows/client-libraries-pull-request.yaml b/.github/workflows/client-libraries-pull-request.yaml index 3b2dec51..53abd35a 100644 --- a/.github/workflows/client-libraries-pull-request.yaml +++ b/.github/workflows/client-libraries-pull-request.yaml @@ -60,12 +60,6 @@ jobs: generators/*/exclusions.txt !generated/artifacts/openapi* !generators/openapi* - # - name: Store generated configuration - # uses: actions/upload-artifact@v4 - # with: - # name: configuration-${{ github.workflow }}-${{ github.run_id }}-${{ github.run_number }}-${{ matrix.generator }} - # path: generated/configuration/${{ matrix.generator }}.yaml - # reusable: create_pr: name: "${{ matrix.generator }}: commit and create pull request to ${{ matrix.git_repo_id }} repository (update: ${{matrix.update}})" runs-on: ubuntu-latest @@ -78,16 +72,12 @@ jobs: git_repo_id: onfido-node preCommit: npm install version: ${{ needs.build_client_libraries.outputs.typescript_axios_version }} - update: ${{ inputs.update-onfido-node || true }} - # environment: - # name: ${{ matrix.git_repo }}-generation - # if: github.event_name == 'push' - # if: github.event_name == 'workflow_dispatch' && + update: ${{ inputs.update-onfido-node }} + if: github.event_name == 'workflow_dispatch' steps: - uses: actions/checkout@v4 if: ${{ matrix.update }} with: - # token: ${{ secrets.GITHUB_ACTION_ACCESS_TOKEN }} repository: onfido/${{ matrix.git_repo_id }} - uses: actions/download-artifact@v4 if: ${{ matrix.update }} @@ -108,7 +98,7 @@ jobs: uses: peter-evans/create-pull-request@v6 if: ${{ matrix.update && steps.generator.outputs.any_change }} with: - # token: ${{ secrets.GITHUB_ACTION_ACCESS_TOKEN }} + token: ${{ secrets.GH_ACTION_ACCESS_TOKEN }} commit-message: Client library upgrade after OpenAPI change (${{ matrix.version }}) title: Client library upgrade after OpenAPI change (${{ matrix.version }}) body: |