Skip to content

hotfix: write 권한 부여 및 --force-with-lease 적용 #14

hotfix: write 권한 부여 및 --force-with-lease 적용

hotfix: write 권한 부여 및 --force-with-lease 적용 #14

Workflow file for this run

name: Sync to Forked Repo
on:
push:
branches:
- develop
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source repository
uses: actions/checkout@v2
- name: Configure git
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
- name: Add fork as remote
run: |
git remote add fork https://${{secrets.JIWON_GITHUB_KEY}}@github.com/Choi-Jiwon-38/workinkorea.git
git fetch fork
git checkout develop
- name: Push to forked repo
run: |
git push fork develop --force-with-lease