ci: push to epi repo #7
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: Push to Another Repository | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
push-to-destination: | |
if: github.repository == 'SchneiderNicolas/PWA' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source repo | |
uses: actions/checkout@v2 | |
- name: Push to destination repo | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Nicolas Schneider" | |
git remote add destination https://x-access-token:${{ secrets.TOKEN }}@github.com/EpitechPromo2024/M-WEB-902-PAR-9-1-pwaproject-nicolas.schneider.git | |
git push destination main |