Skip to content

Commit

Permalink
fix: fix _called-wf-ref action
Browse files Browse the repository at this point in the history
  • Loading branch information
awownysz-splunk committed Dec 20, 2023
1 parent 1227eae commit 9f1d93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/_called-wf-ref/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ runs:
id: workflows-ref
shell: bash
run: |
ref=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ inputs.GH_TOKEN_ADMIN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/splunk/splunk-add-on-for-microsoft-cloud-services/actions/runs/${{ github.run_id }} | jq -r '.referenced_workflows[0] | .ref')
ref=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ inputs.GH_TOKEN_ADMIN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq -r '.referenced_workflows[0] | .ref')
echo "caller-ref=$ref" >> $GITHUB_OUTPUT

0 comments on commit 9f1d93d

Please sign in to comment.