-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding GH actions to update SDK (#30)
* Adding sdk npm services
- Loading branch information
1 parent
8216187
commit 3378e43
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Sync to SDK Repository | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'typed_contracts/**' | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Push to destination repo | ||
run: | | ||
git config --global user.name "GitHub Action" | ||
git config --global user.email "action@github.com" | ||
git clone https://${{ secrets.XSIGNER_ACCESS_TOKEN }}@github.com/protofire/xsigners-sdk.git xsigners_sdk | ||
cp -r typed_contracts xsigners_sdk/src/ | ||
cd xsigners_sdk | ||
git remote set-url origin https://${{ secrets.XSIGNER_ACCESS_TOKEN }}@github.com/protofire/xsigners-sdk.git | ||
git add . | ||
git commit -m "Sync from contracts source repo" | ||
git push | ||