Skip to content

Commit

Permalink
fix(ci): fix e2e test pr commment
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo201626 committed Mar 5, 2024
1 parent 0737b1c commit 260ab65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-e2e-pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:

jobs:
comment:
permissions:
pull-requests: write
name: Comment User Tip
runs-on: ubuntu-latest
steps:
Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 260ab65

Please sign in to comment.