mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-02-11 19:51:07 +03: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:
parent
18cba41bad
commit
0823743d4b
17
.github/workflows/publish.yml
vendored
17
.github/workflows/publish.yml
vendored
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user