We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b0a6e2 commit 2c2495aCopy full SHA for 2c2495a
.github/workflows/pr-linter.yml
@@ -46,15 +46,8 @@ jobs:
46
if: github.event_name == 'workflow_run'
47
id: 'pr_output'
48
run: |
49
- if [[ ! -f pr/pr_number ]]; then
50
- echo "${{ github.event.pull_request.number }}" > pr/pr_number
51
- fi
52
- if [[ ! -f pr/pr_sha ]]; then
53
- echo "${{ github.event.pull_request.head.sha }}" > pr/pr_sha
54
55
- cat pr/*
56
- echo "pr_number=$(cat pr/pr_number)" >> "$GITHUB_OUTPUT"
57
- echo "pr_sha=$(cat pr/pr_sha)" >> "$GITHUB_OUTPUT"
+ echo "pr_number=${{ github.event.workflow_run.pull_requests[0].number }}" >> $GITHUB_OUTPUT
+ echo "pr_sha=${{ github.event.workflow_run.head_sha }}" >> $GITHUB_OUTPUT
58
59
validate-pr:
60
# Necessary to have sufficient permissions to write to the PR
0 commit comments