Skip to content

Commit

Permalink
fix: wrong syntax in python.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
changchiyou committed Aug 22, 2023
1 parent 3d7d320 commit e0dc329
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ jobs:
else
pytest_result=":red_circle: **\`pytest\` failed**"
fi
echo -e "$pylint_result\n$pytest_result" > content
echo -e "$pylint_result\n$pytest_result" > msg
export msg=$(cat msg)
if [ "${{ github.event.issue.pull_request }}" = true ] ; then
gh pr comment "${{ github.event.issue.number }}" --body "$content"
gh pr comment "${{ github.event.issue.number }}" --body "$msg"
else
gh issue comment "${{ github.event.issue.number }}" --body "$content"
gh issue comment "${{ github.event.issue.number }}" --body "$msg"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e0dc329

Please sign in to comment.