From beab42763ce5f45a9741d92b8b2a2917053195b8 Mon Sep 17 00:00:00 2001 From: Matthew Parker Date: Tue, 14 May 2024 02:41:13 +0100 Subject: [PATCH] Made small fix --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d8641f..b9496a2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: id: pr-title run: | if [ "${{ github.event_name }}" = "push" ]; then - PR_NUMBER=$(jq -r '.[0].pull_request.number' < "${GITHUB_EVENT_PATH}") + PR_NUMBER=$(jq -r '.number' < "${GITHUB_EVENT_PATH}") else PR_NUMBER=$(gh pr list --base main --state merged --limit 1 --json number --jq '.[0].number') fi