1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2025-01-05 01:20:39 +02:00

Push tag manually in 'Publish Releases' workflow (#7342)

* Push tag manually in 'Publish Releases' workflow

* Use 'set -e' command
This commit is contained in:
Álvaro Mondéjar 2022-04-18 07:56:17 -05:00 committed by GitHub
parent 18cba41bad
commit 0823743d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,18 +79,21 @@ jobs:
with:
files: README.md
strict: true
# Add commit that will only be included in the tag
- name: Configure GIT credentials
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
# Commit that will only be included in the tag
- name: Commit dark theme images strip
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add README.md
git commit -m 'Strip README dark theme image links'
- name: Create and push git tag
uses: actions-ecosystem/action-push-tag@v1
with:
tag: ${{ steps.get-version.outputs.version }}
message: ${{ steps.commit.outputs.git-message }}
run: |
set -e
tag="${{ steps.get-version.outputs.version }}"
git tag -a "${tag}" -m "${{ steps.commit.outputs.git-message }}"
git push origin "${tag}"
- name: Create release
uses: actions/create-release@v1
env: