Skip to content

Commit

Permalink
Fix github secret for PR creation
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Mar 5, 2024
1 parent ed85010 commit e092fc1
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/client-libraries-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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: |
Expand Down

0 comments on commit e092fc1

Please sign in to comment.