diff options
author | Sean E. Russell <ser@ser1.net> | 2020-05-13 12:31:51 -0500 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-05-13 12:31:51 -0500 |
commit | 9e4750f7ff5accb610053014155958cb5b7956bd (patch) | |
tree | d4bc804c783f404a84dc2ca2c9fe06d0852d1fc3 /.github | |
parent | 28df77fe42f4c78e51e62a99c467ff6c37c513d4 (diff) |
Adds a current-release badge to the README
Diffstat (limited to '.github')
-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> |