From 0076e9fde2b2ad0778499e37c63abdadba08b290 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Thu, 22 May 2025 15:50:21 +0200 Subject: [PATCH] ci: github: Fix change status of head of failed run Currently it touched the commit of the workflow (head of main) It was tested with related PR: Origin: https://github.com/SiliconLabsSoftware/z-wave-protocol-controller/pull/106 Relate-to: https://github.com/rzr/z-wave-protocol-controller/pull/4 Relate-to: https://github.com/SiliconLabsSoftware/z-wave-protocol-controller/issues/67 Relate-to: https://github.com/SiliconLabsSoftware/z-wave-protocol-controller/settings/actions Signed-off-by: Philippe Coval --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98d5b64d0..78c1f761a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -91,7 +91,7 @@ jobs: await github.rest.repos.createCommitStatus({ owner: context.repo.owner, repo: context.repo.repo, - sha: context.sha, + sha: process.env.sha, state: process.env.status }) process.exit(process.env.status == 'success' ? 0 : 1);