fix(ci): fix e2e test pr commment (#1466)

This commit is contained in:
yoyo 2024-03-05 17:40:42 +08:00 committed by GitHub
parent bfa745141f
commit 8af9552e11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,8 @@ on:
jobs:
comment:
permissions:
pull-requests: write
name: Comment User Tip
runs-on: ubuntu-latest
steps:
@ -20,7 +22,7 @@ jobs:
- name: Save PR Id
id: pr
run: |
if [ -f user-tip.txt ]; then
if [ -f pr-id.txt ]; then
echo "id=$(cat pr-id.txt)" >> $GITHUB_OUTPUT
fi
@ -39,7 +41,6 @@ jobs:
echo 'EOF' >> $GITHUB_OUTPUT
fi
- uses: thollander/actions-comment-pull-request@v2
if: ${{ steps.txtToOutput.outputs.text && steps.pr.outputs.id }}
with:
message: |
${{ steps.txtToOutput.outputs.text }}