From 13b40e1121fc3b6c018f4be5d9b9797cbd2c85d1 Mon Sep 17 00:00:00 2001 From: Mak Date: Mon, 22 Jul 2024 18:04:47 +0100 Subject: [PATCH] Update cmd.yml --- .github/workflows/cmd.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmd.yml b/.github/workflows/cmd.yml index e84f9b4c4e..6088e72f26 100644 --- a/.github/workflows/cmd.yml +++ b/.github/workflows/cmd.yml @@ -24,7 +24,12 @@ jobs: - name: Build workflow link id: build-link run: | - workflowId=$(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }} --jq .workflow_id) + workflowId=$(curl -s \ + -H "Authorization: token ${{ steps.commands_token.outputs.token }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq .workflow_id) + + echo "workflow_id=${workflowId}" workflowLink="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/workflow/${workflowId}"