Skip to content

Commit 2c2495a

Browse files
author
Leon Michalski
committed
Update
1 parent 1b0a6e2 commit 2c2495a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/pr-linter.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,8 @@ jobs:
4646
if: github.event_name == 'workflow_run'
4747
id: 'pr_output'
4848
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-
fi
55-
cat pr/*
56-
echo "pr_number=$(cat pr/pr_number)" >> "$GITHUB_OUTPUT"
57-
echo "pr_sha=$(cat pr/pr_sha)" >> "$GITHUB_OUTPUT"
49+
echo "pr_number=${{ github.event.workflow_run.pull_requests[0].number }}" >> $GITHUB_OUTPUT
50+
echo "pr_sha=${{ github.event.workflow_run.head_sha }}" >> $GITHUB_OUTPUT
5851
5952
validate-pr:
6053
# Necessary to have sufficient permissions to write to the PR

0 commit comments

Comments
 (0)