Skip to content

Commit

Permalink
Merge pull request #4 from udit-uniyal/main
Browse files Browse the repository at this point in the history
Updated action.yaml
  • Loading branch information
raviknox authored Feb 29, 2024
2 parents b1a39d4 + 39b3383 commit ebee97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit ebee97a

Please sign in to comment.