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"