Add psp22 tests (#39) #16
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: Sync to SDK Repository | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
paths: | |
- 'typed_contracts/**' | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source repo | |
uses: actions/checkout@v2 | |
- name: Create new branch and push | |
run: | | |
SHORT_HASH=$(git rev-parse --short HEAD) | |
git config --global user.name "GitHub Action" | |
git config --global user.email "[email protected]" | |
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 | |
BRANCH_NAME="sync-contracts-src-${SHORT_HASH}" | |
git checkout -b $BRANCH_NAME | |
git add . | |
git commit -m "Sync from contracts source repo" | |
git push origin $BRANCH_NAME | |