Synchronize workflow with 'simple-icons-font' repo (#4408)

This commit is contained in:
Álvaro Mondéjar 2020-12-20 12:43:16 +01:00 committed by GitHub
parent bcfcab934f
commit 6379ae7022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,22 +52,20 @@ jobs:
RELEASE_BODY=$(echo '${{ steps.commit.outputs.git-message }}' | tail -n $(expr $(echo '${{ steps.commit.outputs.git-message }}' | wc -l) - 1)) RELEASE_BODY=$(echo '${{ steps.commit.outputs.git-message }}' | tail -n $(expr $(echo '${{ steps.commit.outputs.git-message }}' | wc -l) - 1))
echo "::set-output name=body::$RELEASE_BODY" echo "::set-output name=body::$RELEASE_BODY"
- name: Get release version - name: Get release version
id: get_version id: get-version
run: | run: |
export PACKAGE_VERSION=$(cat package.json | grep 'version' | sed 's/[ \",:]//g' | sed 's/version//') export PACKAGE_VERSION=$(cat package.json | grep 'version' | sed 's/[ \",:]//g' | sed 's/version//')
echo "::set-output name=version::$PACKAGE_VERSION" echo "::set-output name=version::$PACKAGE_VERSION"
- name: Create and push git tag - name: Create and push git tag
uses: actions-ecosystem/action-push-tag@v1 uses: actions-ecosystem/action-push-tag@v1
with: with:
tag: ${{ steps.get_version.outputs.version }} tag: ${{ steps.get-version.outputs.version }}
message: ${{ steps.commit.outputs.git-message }} message: ${{ steps.commit.outputs.git-message }}
- name: Create release - name: Create release
uses: actions/create-release@v1 uses: actions/create-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ steps.get_version.outputs.version }} tag_name: ${{ steps.get-version.outputs.version }}
release_name: ${{ steps.release.outputs.title }} release_name: ${{ steps.release.outputs.title }}
body: ${{ steps.release.outputs.body }} body: ${{ steps.release.outputs.body }}
draft: false
prerelease: false