From 39b33836c0774501033753d8ae5e473f5680547f Mon Sep 17 00:00:00 2001 From: udit-uniyal Date: Thu, 29 Feb 2024 09:59:51 +0530 Subject: [PATCH] Updated action.yaml --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index a91bf0a..02ec41d 100644 --- a/action.yaml +++ b/action.yaml @@ -74,7 +74,7 @@ runs: - name: Formating the results run: | - jq --arg repoLink "${{ github.server_url }}/${{ github.repository }}" --arg branch "${{ github.head_ref }}" '. += [{"details": {"repo": $repoLink, "branch": $branch}}]' results/results_json.json > temp.json && mv temp.json results.json + jq --arg repoLink "${{ github.server_url }}/${{ github.repository }}" --arg branch "${{ github.ref == 'refs/heads/main' && 'main' || github.head_ref }}" '. += [{"details": {"repo": $repoLink, "branch": $branch}}]' results/results_json.json > temp.json && mv temp.json results.json shell: bash