fix: linting (#44) #1
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 Repository | |
on: | |
push: | |
branches: | |
- "main" | |
- "dev" | |
jobs: | |
sync: | |
if: github.repository == 'defi-wonderland/xTokens-private' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out github repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install SSH Client | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SYNC_SSH_PRIVATE_KEY }} | |
- name: Add Remote | |
run: git remote add public [email protected]:defi-wonderland/xTokens.git | |
- name: Sync branch | |
run: git push public ${{ github.ref_name }} |