Skip to content

chore: Update remote URL for forked repo #2

chore: Update remote URL for forked repo

chore: Update remote URL for forked repo #2

Workflow file for this run

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