We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4777e87 commit 27c71bdCopy full SHA for 27c71bd
.github/workflows/release.yml
bump.sh
@@ -0,0 +1,26 @@
1
+#!/usr/bin/env bash
2
+
3
+set -e
4
5
+new_tag=$1
6
7
+# determine old tag
8
+git fetch origin HEAD --tags --quiet
9
+old_tag="$(git describe HEAD --abbrev=0 --tags)"
10
11
+echo Bump "$old_tag" '->' "$new_tag"
12
13
+# Ensure clean workspace
14
15
+if ! (git update-index --refresh && git diff-index --quiet HEAD --); then
16
+ echo Commit staged and unstaged changes first.
17
+ exit 2
18
+fi
19
20
+# update references of old version in README
21
+sed -i -e "s/$old_tag/$new_tag/g" README.md
22
23
+# Commit
24
+msg='Bump version from `'$old_tag'` to `'$new_tag'`'
25
+git add README.md
26
+git commit --no-verify -m "$msg"
0 commit comments