Upgrade git-message-action from v1 to v1.2.0 (#6424)

This commit is contained in:
Eric Cornelissen 2021-08-29 18:59:33 +02:00 committed by GitHub
parent 2cfea3131c
commit f9e8ecb777
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,17 +71,7 @@ jobs:
uses: actions/checkout@v2
- name: Get commit message (for release title and body)
id: commit
uses: kceb/git-message-action@v1
- name: Get release title and body
id: release
run: |
RELEASE_TITLE=$(echo "${{ steps.commit.outputs.git-message }}" | head -n 1)
echo "::set-output name=title::$RELEASE_TITLE"
RELEASE_BODY=$(echo "${{ steps.commit.outputs.git-message }}" | tail -n $(expr $(echo "${{ steps.commit.outputs.git-message }}" | wc -l) - 1))
RELEASE_BODY="${RELEASE_BODY//'%'/'%25'}"
RELEASE_BODY="${RELEASE_BODY//$'\n'/'%0A'}"
RELEASE_BODY="${RELEASE_BODY//$'\r'/'%0D'}"
echo "::set-output name=body::$RELEASE_BODY"
uses: kceb/git-message-action@v1.2.0
- name: Get release version
id: get-version
run: |
@ -98,8 +88,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get-version.outputs.version }}
release_name: ${{ steps.release.outputs.title }}
body: ${{ steps.release.outputs.body }}
release_name: ${{ steps.commit.outputs.title }}
body: ${{ steps.commit.outputs.body }}
font:
name: Trigger simple-icons-font release
needs: npm