diff --git a/.github/workflows/sync-to-fork.yml b/.github/workflows/sync-to-fork.yml index fa5846fe..7967d580 100644 --- a/.github/workflows/sync-to-fork.yml +++ b/.github/workflows/sync-to-fork.yml @@ -1,4 +1,4 @@ -name: Sync Fork With Upstream +name: Sync Fork With forked repo on: push: branches: @@ -7,32 +7,25 @@ on: jobs: sync: - if: github.repository == 'BrainPix-front' + name: Sync forked repo runs-on: ubuntu-latest steps: - name: Checkout develop - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{secrets.PAT_TOKEN}} ref: develop - persition-credentials: false - - name: Set up Git + - name: Add remote-url run: | + git remote add forked-repo https://minjeong9919:${{ secrets.PAT_TOKEN }}@github.com/minjeong9919/BrainPix-front git config user.name minejeong9919 git config user.email "minjeong9919@github.com" - - name: Add remote-url - run: | - git remote add forked-repo https://github.com/minjeong9919/BrainPix-front.git - - name: Push changes to Forked-reop - env: - GITHUB_USERNAME: minjeong9919 - GITHUB_TOKEN: ${{secrets.PAT_TOKEN}} run: | - git push -f http://$GITHUB_USERNAME:$GITHUB_TOKEN@https://github.com/minjeong9919/BrainPix-front.git develop + git push -f https://github.com/BrainPix/BrainPix-front develop - name: Clean up run: | diff --git a/src/utils/auth.ts b/src/utils/auth.ts index dcc4f5af..5ea69f33 100644 --- a/src/utils/auth.ts +++ b/src/utils/auth.ts @@ -1,14 +1,14 @@ export const parseJwt = (token: string) => { try { - const base64Url = token.split('.')[1]; // JWT의 Payload - const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/'); // Base64 URL Safe 복원 + const base64Url = token.split('.')[1]; + const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/'); const jsonPayload = decodeURIComponent( atob(base64) .split('') .map((c) => `%${('00' + c.charCodeAt(0).toString(16)).slice(-2)}`) .join(''), ); - return JSON.parse(jsonPayload); // JSON 객체로 변환 + return JSON.parse(jsonPayload); } catch { throw Error(); } diff --git a/src/utils/formatSpecialization.ts b/src/utils/formatSpecialization.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/src/utils/imageLoader.ts b/src/utils/imageLoader.ts deleted file mode 100644 index e69de29b..00000000