Skip to content

Commit

Permalink
Push using token
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Aug 6, 2024
1 parent d95671e commit 9cae67a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ jobs:

- name: Push to repository
env:
GITHUB_TOKEN: ${{ secrets.TEST_PERSONAL_ACCESS_TOKEN_FOR_SDK_GEN }}
REPO_NAME: cgw-sdk
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
git config --global user.name 'iamacook'
git config --global user.email '[email protected]'
git clone [email protected]:5afe/cgw-sdk.git cloned-repo
mkdir -p cloned-repo/dist
cp -r dist/sdk/* cloned-repo/dist/
cd cloned-repo
git clone https://github.com/5afe/cgw-sdk
cd cgw-sdk
cp -r ./dist/sdk/* cgw-sdk
git add .
git commit -m "Update SDK according to ${{ github.sha }}"
git push
git push https://[email protected]/5afe/cgw-sdk.git

0 comments on commit 9cae67a

Please sign in to comment.