chore: Update generate_info_json.sh

This commit is contained in:
Shrikant Sharat Kandula 2023-08-04 06:38:16 +05:30 committed by GitHub
parent fbe47a4522
commit 692a9f4370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,11 +34,9 @@ jq -n \
--arg commitSha "$commit_sha" \ --arg commitSha "$commit_sha" \
--arg commitUrl "$base_url/commit/$commit_sha" \ --arg commitUrl "$base_url/commit/$commit_sha" \
--arg gitRef "$git_ref" \ --arg gitRef "$git_ref" \
--arg githubRef "$git_ref" \ --arg githubRef "${GITHUB_REF-}" \
--arg gitNearestTag "$git_tag" \ --arg gitNearestTag "$git_tag" \
--arg githubRunUrl "${github_run_url-}" \ --arg githubRunUrl "${github_run_url-}" \
--arg gitUserName "$(git config user.name)" \
--arg gitUserEmail "$(git config user.email)" \
--arg date "$(date -u -Iseconds)" \ --arg date "$(date -u -Iseconds)" \
--argjson isCI "${CI:-false}" \ --argjson isCI "${CI:-false}" \
'$ARGS.named' | tee "$(git rev-parse --show-toplevel)/info.json" '$ARGS.named' | tee "$(git rev-parse --show-toplevel)/info.json"