Skip to content

Commit

Permalink
Update create_release_commit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreQuebriac authored Oct 12, 2023
1 parent 0b7d11c commit 8d7e350
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/create_release_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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"

0 comments on commit 8d7e350

Please sign in to comment.