ci/version-as-env #97

Merged
servostar merged 2 commits from ci/version-as-env into main 2024-11-25 12:17:59 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 22e58eec81 - Show all commits

View File

@ -58,8 +58,10 @@ jobs:
- name: Prepare Release
run: echo ${{ github.sha }} > Release.txt
- name: Tag Release Commit
env:
COMMIT_MESSAGE: ${{github.event.head_commit.message}}
run: |
export VERSION=$(echo ${{github.event.head_commit.message}} | grep -Po '(?<=Release-As: )v\d+\.\d+\.\d+')
export VERSION=$(echo "${COMMIT_MESSAGE}" | grep -Po '(?<=Release-As: )v\d+\.\d+\.\d+')
echo "==> Tagging for version: ${VERSION}"
git config --global credential.helper store
echo "https://${USERNAME}:${{secrets.RELEASE_TOKEN}}}@${{github.repositoryUrl}}" > ~/.git-credentials