ci: store commit message in intermediate environment variable
Build'n check / run-ci-linux (pull_request) Has been skipped
Details
Build'n check / run-ci-linux (pull_request) Has been skipped
Details
This commit is contained in:
parent
196be63418
commit
22e58eec81
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue