ci: get PR number correctly from pull_request event (#8158)

This commit is contained in:
Muhammad Atif Ali
2023-06-22 17:19:14 +00:00
committed by GitHub
parent 2c046ef475
commit 1417c12229
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
id: pr_number
run: |
if [ -z "${{ github.event.pull_request.number }}" ]; then
echo "PR_NUMBER=${{ github.event.inputs.pr_number }}" >> $GITHUB_OUTPUT
echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT
else
echo "PR_NUMBER=${{ github.event.inputs.pr_number }}" >> $GITHUB_OUTPUT
fi