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: with:
files: README.md files: README.md
strict: true 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 - name: Commit dark theme images strip
run: | 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 add README.md
git commit -m 'Strip README dark theme image links' git commit -m 'Strip README dark theme image links'
- name: Create and push git tag - name: Create and push git tag
uses: actions-ecosystem/action-push-tag@v1 run: |
with: set -e
tag: ${{ steps.get-version.outputs.version }} tag="${{ steps.get-version.outputs.version }}"
message: ${{ steps.commit.outputs.git-message }} git tag -a "${tag}" -m "${{ steps.commit.outputs.git-message }}"
git push origin "${tag}"
- name: Create release - name: Create release
uses: actions/create-release@v1 uses: actions/create-release@v1
env: env: