Fix name of secret #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate SDK | |
on: | |
push: | |
jobs: | |
generate-sdk: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/iron' | |
cache: 'yarn' | |
- run: yarn install --immutable | |
- name: Generate SDK | |
run: yarn generate-sdk | |
- name: Push to repository | |
env: | |
PERSONAL_ACCESS_TOKEN: ${{ secrets.TEST_PERSONAL_ACCESS_TOKEN_FOR_SDK_GEN }} | |
run: | | |
git config --global user.name 'iamacook' | |
git config --global user.email '[email protected]' | |
git clone https://github.com/5afe/cgw-sdk | |
cp -r dist/sdk/* cgw-sdk | |
cd cgw-sdk | |
git add . | |
git commit -m "Update SDK according to ${{ github.sha }}" | |
git push https://[email protected]/5afe/cgw-sdk.git |