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 8ea6fa0 commit 2ae4ced
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/create_release_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,22 @@ jobs:
working-directory: ${{github.workspace}}
run: |
echo "Create Tag"
gh api --method POST /repos/:owner/:repo/git/tags \
TAG_SHA=gh api --method POST /repos/:owner/:repo/git/tags \
--field tag="${{inputs.version_name}}" \
--field message="$CI_COMMIT_MESSAGE" \
--field type="commit" \
--field object="${{env.SHA}}"
--field object="${{env.SHA}}" \
--jq '.sha'
echo "TAG_SHA=$TAG_SHA" >> $GITHUB_ENV
echo $TAG_SHA
- name: Create Tag Ref
working-directory: ${{github.workspace}}
run: |
echo "Create Tag ref"
git fetch --all --tags
TAG_SHA=$(git rev-parse refs/tags/${{inputs.version_name}})
gh api --method POST -H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/:owner/:repo/git/refs \
Expand Down

0 comments on commit 2ae4ced

Please sign in to comment.