Merge pull request #103 from IERoboticsClub/main #20
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 Fork (Repo B) | |
on: | |
push: | |
branches: | |
- prod | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo A | |
uses: actions/checkout@v2 | |
- name: Set up SSH | |
run: | | |
echo "${{ secrets.SSH_KEY }}" > id_rsa | |
chmod 600 id_rsa | |
ssh-keyscan github.com >> known_hosts | |
env: | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | |
- name: Sync Branches | |
run: | | |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null | |
ssh-add id_rsa | |
git remote add club-website [email protected]:velocitatem/club-website.git | |
git push repoB ${{ github.ref }} | |
env: | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock |