From 1edcf63ca83bc59f2bec8aa7d09e2c6309e179ea Mon Sep 17 00:00:00 2001 From: Arthur Chaloin Date: Thu, 2 Jun 2022 14:39:07 +0200 Subject: [PATCH] fix(ci): pass correct version to ci script --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f9dedb7..29f62a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -156,8 +156,8 @@ chart: - > echo '{}' | jq '.event_type = "x509 Certificate Exporter Automatic Release"' - | jq --arg ref "$(cat CHANGELOG.md)" '.client_payload.ref = $ARGS.named["ref"]' - | jq --arg notes "$NOTES" '.client_payload.notes = $ARGS.named["notes"]' + | jq --arg ref "${CI_COMMIT_REF_NAME:1}" '.client_payload.ref = $ARGS.named["ref"]' + | jq --arg notes "$(cat CHANGELOG.md)" '.client_payload.notes = $ARGS.named["notes"]' | jq ".client_payload.contains_security_updates = \"${CONTAINS_SECURITY_UPDATES:-false}\"" > body.json - >