Merge branch 'main' of github.com:ALOC-UOS/timer #3
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: Cross-Repo Push | |
on: | |
push: | |
branches: | |
- deploy | |
jobs: | |
push-to-other-repo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install SSH key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Push to target repo | |
env: | |
TARGET_REPO: [email protected]:baebae02/aloc-timer.git | |
run: | | |
git config --global user.name 'GitHub Action' | |
git config --global user.email '[email protected]' | |
git remote add target_repo $TARGET_REPO | |
git push target_repo deploy:main --force |