feat: add ga events (#52) #61
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 forked repo | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
sync: | |
name: push to forked repo | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout main | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.FORKED_REPO_TOKEN }} | |
fetch-depth: 0 | |
ref: main | |
- name: add remote-url | |
run: | | |
git remote add forked-repo https://Najeong-Kim:${{ secrets.FORKED_REPO_TOKEN }}@github.com/Najeong-Kim/WeSki-web | |
git config user.name Najeong-Kim | |
git config user.email [email protected] | |
- name: push changes to forked-repo | |
run: | | |
git push -f forked-repo main | |
- name: clean up | |
run: | | |
git remote remove forked-repo |