Skip to content

๐Ÿ› Fix: deploy๋ฌธ์„œ ํฌํฌ ๋ ˆํฌ ํ† ํฐ ๊ฐ’ ์ถ”๊ฐ€ #12

๐Ÿ› Fix: deploy๋ฌธ์„œ ํฌํฌ ๋ ˆํฌ ํ† ํฐ ๊ฐ’ ์ถ”๊ฐ€

๐Ÿ› Fix: deploy๋ฌธ์„œ ํฌํฌ ๋ ˆํฌ ํ† ํฐ ๊ฐ’ ์ถ”๊ฐ€ #12

Workflow file for this run

name: Synchronize to forked repo
on:
push:
branches:
- main
jobs:
sync:
name: Sync forked repo
runs-on: ubuntu-latest
steps:
#ํŒ€ ๋ฉ”์ธ ๋ ˆํฌ ์ฒดํฌ์•„์›ƒ
- name: Checkout main
uses: actions/checkout@v4
with:
repository: merging-Branchify/Branchify_FE #ํŒ€ ๋ฉ”์ธ ๋ ˆํฌ ์ด๋ฆ„
token: ${{ secrets.BRANCHIFY_TOKEN }} #ํŒ€ ๋ ˆํฌ ์ ‘๊ทผ ํ† ํฐ
fetch-depth: 0
ref: main
#ํฌํฌ ๊ฐœ์ธ ๋ ˆํฌ remote ์ถ”๊ฐ€
- name: Add remote-url
run: |
git remote add forked-repo https://hyuke81:${{ secrets.BRANCHIFY_TOKEN }}@github.com/hyuke81/Branchify_FE
git config user.name "hyuke81"
git config user.email "${{ secrets.EMAIL }}"
#๊ฐœ์ธ ๋ ˆํฌ ๋ณ€๊ฒฝ์‚ฌํ•ญ ํ‘ธ์‹œ
- name: Push changes to forked-repo
run: |
git push -f forked-repo main
- name: Clean up
run: |
git remote remove forked-repo