-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@zakelstorm/blog): pr의 github action이 rerun되지않는 현상 수정 및 pnpm-stor…
…e 캐시를 통한 의존성설치 시간 단축"
- Loading branch information
nz10387
committed
Jun 2, 2024
1 parent
9fc9858
commit aa7a4fd
Showing
2 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,20 +13,26 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install GitHub CLI | ||
run: sudo apt-get install gh | ||
|
||
- name: Authenticate GitHub CLI | ||
run: | | ||
echo "${{ secrets.GIT_TOKEN }}" | gh auth login --with-token | ||
- name: Build and Test | ||
uses: ./.github/actions/build_test | ||
- name: Get PR Info | ||
id: get_pr | ||
uses: octokit/[email protected] | ||
with: | ||
node-version-file: '.nvmrc' | ||
NEXT_PUBLIC_SANITY_STUDIO_URL: ${{ secrets.NEXT_PUBLIC_SANITY_STUDIO_URL }} | ||
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }} | ||
NEXT_PUBLIC_SANITY_DATASET: ${{ secrets.NEXT_PUBLIC_SANITY_DATASET }} | ||
NEXT_PUBLIC_SANITY_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_SANITY_PROJECT_ID }} | ||
NEXT_PUBLIC_SANITY_ADMIN_TOKEN: ${{ secrets.NEXT_PUBLIC_SANITY_ADMIN_TOKEN }} | ||
NEXT_PUBLIC_SANITY_USER_TOKEN: ${{ secrets.NEXT_PUBLIC_SANITY_USER_TOKEN }} | ||
NEXT_PUBLIC_SANITY_REVALIDATE_SECRET: ${{ secrets.NEXT_PUBLIC_SANITY_REVALIDATE_SECRET }} | ||
NEXT_PUBLIC_SANITY_API_VERSION: ${{ secrets.NEXT_PUBLIC_SANITY_API_VERSION }} | ||
route: /repos/${{ github.repository }}/pull/${{ github.event.issue.number }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set BRANCH_REF | ||
run: echo "BRANCH_REF=$(echo ${{ steps.get_pr.outputs.data }})" | ||
|
||
- name: Trigger build_pr workflow | ||
run: gh workflow run build_pr.yml --ref ${{ github.event.issue.pull_request.head.sha }} |