From a2b935c5cb792d10c5c72ff7137022ea563698b7 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 12 Jul 2025 21:31:41 +0930 Subject: [PATCH] fix(problem_matcher): Ensure commit var set for annotation parsing ref: #6 --- playbooks/problem_matcher.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/playbooks/problem_matcher.yaml b/playbooks/problem_matcher.yaml index 94a3fcb..4d54f1b 100644 --- a/playbooks/problem_matcher.yaml +++ b/playbooks/problem_matcher.yaml @@ -67,7 +67,9 @@ cmd: | set -o pipefail; - export GITHUB_ACTOR={{ payload.sender.username }} + export GITHUB_ACTOR={{ payload.sender.username }}; + + export GITHUB_SHA={{ payload.workflow_job.head_sha }}; cat /tmp/job.log | annotations > /tmp/annotations.json; @@ -102,7 +104,7 @@ ansible.builtin.debug: msg: "{{ http_get_pull_request.json.state | default('No PR found') }}" when: > - not http_get_pull_request.skipped | bool | default(false) + not http_get_pull_request.skipped | default(false) | bool - name: Post review @@ -122,4 +124,4 @@ and http_get_pull_request.status | default(0) == 200 and - not http_get_pull_request.skipped | bool | default(false) + not http_get_pull_request.skipped | default(false) | bool