Skip to content

Commit 36291d7

Browse files
fix: update GitHub Actions workflow to include permissions for issue comments and improve Playwright dependency installation
1 parent 36567c8 commit 36291d7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/panda-webhook.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ defaults:
88
working-directory: ./
99

1010
permissions:
11-
contents: read # for checkout repository
11+
contents: read
12+
issues: write # ✅ Required for issue comments
1213

1314
jobs:
1415
run-e2es:
@@ -43,11 +44,8 @@ jobs:
4344
restore-keys: |
4445
${{ runner.os }}-pnpm-store-
4546
46-
- name: Install Playwright dependencies
47-
run: pnpm exec playwright install-deps
48-
49-
- name: Install Playwright
50-
run: pnpm exec playwright install
47+
- name: Install dependencies
48+
run: pnpm install --frozen-lockfile && pnpm exec playwright install --with-deps # ✅ Fix Playwright issue
5149

5250
- name: Create PandaDoc Webhook
5351
id: pandadoc-webhook
@@ -89,10 +87,11 @@ jobs:
8987
if: failure()
9088
uses: actions/github-script@v6
9189
with:
90+
github-token: ${{ secrets.GITHUB_TOKEN }} # ✅ Fix GitHub API auth
9291
script: |
9392
github.rest.issues.createComment({
94-
issue_number: 1,
9593
owner: context.repo.owner,
9694
repo: context.repo.repo,
95+
issue_number: 1,
9796
body: "🚨 Playwright tests failed after deployment!"
9897
});

0 commit comments

Comments
 (0)