diff options
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r-- | .github/workflows/release.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a90118a..b158768 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,3 +36,21 @@ jobs: token: ${{ secrets.homebrew }} formula: gotop revision: ${{ steps.tag_name.outputs.tag }} + + - name: Update current release badge + shell: bash + run: sed -i "s/v[0-9]*\.[0-9]*\.[0-9]*/${{steps.tag_name.outputs.tag}}/g" docs/release.svg + + - name: Commit current release badge + uses: stefanzweifel/git-auto-commit-action@v4.1.0 + with: + branch: 'master' + commit_message: Update release badge to version "${{ steps.tag_name.outputs.tag }}" + + # Optional glob pattern of files which should be added to the commit + file_pattern: docs/release.svg + + # Optional commit user and author settings + commit_user_name: Badge Updater + commit_user_email: ser@ser1.net + commit_author: Badge Updater <ser@ser1.net> |