fix(actions): map pull_request_target to contributor bot event (#1092)

This commit is contained in:
Marc Chan 2026-05-09 21:49:13 +08:00 committed by GitHub
parent 5db578123e
commit 3bcb3547d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,4 +50,9 @@ jobs:
BOT_APP_ID: ${{ secrets.BOT_APP_ID }}
BOT_APP_INSTALLATION_ID: ${{ secrets.BOT_APP_INSTALLATION_ID }}
BOT_APP_PRIVATE_KEY: ${{ secrets.BOT_APP_PRIVATE_KEY }}
run: pnpm exec tsx scripts/action-handler.ts
run: |
if [ "$GITHUB_EVENT_NAME" = "pull_request_target" ]; then
GITHUB_EVENT_NAME=pull_request pnpm exec tsx scripts/action-handler.ts
else
pnpm exec tsx scripts/action-handler.ts
fi