Skip to content

Commit 2abcc24

Browse files
committed
chore(github): update integration workflow
1 parent 67f90f5 commit 2abcc24

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/integration.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
repository: benjamincanac/app-ui3
2929

3030
- name: Set commit SHA from triggering workflow
31-
run: echo "COMMIT=${{ github.event.workflow_run.head_sha }}" >> $GITHUB_ENV
31+
run: |
32+
echo "COMMIT_SHA=$(echo ${{ github.event.workflow_run.head_sha }} | cut -c1-7)" >> $GITHUB_ENV
3233
3334
- name: Install pnpm
3435
uses: pnpm/action-setup@v4
@@ -40,7 +41,7 @@ jobs:
4041
cache: pnpm
4142

4243
- name: Install dependencies
43-
run: pnpm install https://pkg.pr.new/@nuxt/ui@${COMMIT:0:7}
44+
run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }}
4445

4546
- name: Typecheck
4647
run: pnpm run typecheck
@@ -69,7 +70,8 @@ jobs:
6970
repository: benjamincanac/app-ui3-vue
7071

7172
- name: Set commit SHA from triggering workflow
72-
run: echo "COMMIT=${{ github.event.workflow_run.head_sha }}" >> $GITHUB_ENV
73+
run: |
74+
echo "COMMIT_SHA=$(echo ${{ github.event.workflow_run.head_sha }} | cut -c1-7)" >> $GITHUB_ENV
7375
7476
- name: Install pnpm
7577
uses: pnpm/action-setup@v4
@@ -81,7 +83,7 @@ jobs:
8183
cache: pnpm
8284

8385
- name: Install dependencies
84-
run: pnpm install https://pkg.pr.new/@nuxt/ui@${COMMIT:0:7}
86+
run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }}
8587

8688
# - name: Typecheck
8789
# run: pnpm run typecheck

0 commit comments

Comments
 (0)