Skip to content

Commit

Permalink
Adding GH actions to update SDK (#30)
Browse files Browse the repository at this point in the history
* Adding sdk npm services
  • Loading branch information
henrypalacios authored Aug 28, 2023
1 parent 8216187 commit 3378e43
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/sync-to-sdk-repo.yml
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

0 comments on commit 3378e43

Please sign in to comment.