Skip to content

Commit 43f47bc

Browse files
Repo secrets
1 parent 050ed93 commit 43f47bc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/pr-preview.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ jobs:
2020
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2121
restore-keys: |
2222
${{ runner.os }}-node-
23+
- run: git config --global url."https://github.com/".insteadOf ssh://git@github.com/
2324
- name: Install dependencies
2425
run: npm ci
2526
- name: Configure git
2627
run: |
27-
28-
git config --global user.name "daniel-montalvo"
29-
git config --global user.email "users.noreply@github.com"
28+
git config --global url."https://${{ secrets.WAI_GIT_NAME }}:${{ secrets.WAI_GIT_ACCESS_TOKEN }}@github.com".insteadOf "https://github.com"
29+
git config --global user.name "${{ secrets.WAI_GIT_NAME }}"
30+
git config --global user.email "${{ secrets.WAI_GIT_EMAIL }}"
3031
- name: Build and deploy WAI update
3132
run: npm run pr:preview
3233
- name: Comment on PR with preview link

0 commit comments

Comments
 (0)