Merge pull request #119 from hufs-sports-live/feat/admin-league #37
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 personal repo | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: creates output | |
run: sh ./build.sh | |
- name: Config git extraheader | |
run: | | |
git config --unset-all http.https://github.com/.extraheader | |
- name: Push to release repository | |
uses: cpina/github-action-push-to-another-repository@main | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | |
API_TOKEN_GITHUB: ${{ secrets.KWAK_GITHUB_TOKEN }} | |
with: | |
source-directory: . | |
destination-github-username: 'HiimKwak' | |
destination-repository-name: 'hufchichi_client' | |
commit-message: ${{ github.event.commits[0].message }} | |
- name: Test get variable exported by push-to-another-repository | |
run: echo $DESTINATION_CLONED_DIRECTORY |