From b3138fb1a94a143db2440e1996e902fc9e7b2ec2 Mon Sep 17 00:00:00 2001 From: Vieltojarvi Date: Tue, 19 Nov 2024 13:41:41 -0800 Subject: [PATCH] added brackets and updated env var name in call --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f04733..fd5316e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,7 +42,7 @@ jobs: PR_HEAD_REF: ${{ github.event.pull_request.head.ref }} - if: steps.git_diff.outputs.has_changes name: Update status check (if changed) - run: gh api -X POST /repos/$REPO_FULL_NAME/check-runs + run: gh api -X POST /repos/${PR_REPO_FULL_NAME}/check-runs -F name="build" -F head_sha="$(git rev-parse HEAD)" -F status="completed" -F conclusion="success" env: @@ -50,7 +50,7 @@ jobs: PR_REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name}} - if: steps.git_diff.outputs.has_changes name: Cancel workflow (if changed) - run: gh api -X POST /repos/$REPO_FULL_NAME/actions/runs/${{ github.run_id }}/cancel + run: gh api -X POST /repos/${PR_REPO_FULL_NAME}/actions/runs/${{ github.run_id }}/cancel env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name}}