From 8d7e3501ea1e780f2ae93595e876e2f0508d54e5 Mon Sep 17 00:00:00 2001 From: Pierre Quebriac <72198491+PierreQuebriac@users.noreply.github.com> Date: Thu, 12 Oct 2023 12:14:14 +0200 Subject: [PATCH] Update create_release_commit.yml --- .github/workflows/create_release_commit.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/create_release_commit.yml b/.github/workflows/create_release_commit.yml index 66c64ce..e11200f 100644 --- a/.github/workflows/create_release_commit.yml +++ b/.github/workflows/create_release_commit.yml @@ -24,9 +24,9 @@ jobs: TODAY=$( date -u '+%Y-%m-%d' ) echo "${{inputs.version_name}} : $TODAY" >> RDM_version_history.txt FILE_TO_COMMIT=RDM_version_history.txt - export MESSAGE="CI_COMMIT_MESSAGE" - export SHA=$( git rev-parse master:$FILE_TO_COMMIT ) - export CONTENT=$( base64 -i $FILE_TO_COMMIT ) + MESSAGE="$CI_COMMIT_MESSAGE" + SHA=$( git rev-parse master:$FILE_TO_COMMIT ) + CONTENT=$( base64 -i $FILE_TO_COMMIT ) gh api --method PUT /repos/:owner/:repo/contents/$FILE_TO_COMMIT \ --field message="$MESSAGE" \ --field content="$CONTENT" \ @@ -35,8 +35,7 @@ jobs: --field sha="$SHA" gh api --method POST /repos/:owner/:repo/git/tags \ - --field tag="${{inputs.version_name}}" \ - --field message="$CONTENT" \ - --field encoding="base64" \ + --field tag="v0.0.1" \ + --field message="$CI_COMMIT_MESSAGE" \ --field type="commit" \ --field object="$SHA"