mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ci: get PR number correctly from pull_request event (#8158)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user