Skip to content

Commit 26a9c0e

Browse files
committedFeb 12, 2021
feat: Add GearLock badge with versionCode in README.md
1 parent 582e399 commit 26a9c0e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

‎.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
author_name: AXIM0S
4444
author_email: axonasif@gmail.com
4545
message: 'Update version code'
46-
add: './core/version'
46+
add: './README.md ./core/version'

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Introduction [![GearLock](https://github.com/AXIM0S/gearlock/workflows/CI/badge.svg)](https://github.com/AXIM0S/gearlock/actions) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
1+
# Introduction [![GearLock](https://github.com/AXIM0S/gearlock/workflows/CI/badge.svg)](https://github.com/AXIM0S/gearlock/actions) [![Version](https://img.shields.io/badge/GearLock-VersionCode-blue.svg)](https://raw.githubusercontent.com/AXIM0S/gearlock/main/core/version) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
22

33
GearLock is a dynamically written bash program focused in performance with the intension of making modifications in android-x86 easier.
44

‎makeme

+3
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,9 @@ SEMVER_REGEX="\
492492
echo "$(semver bump minor "$CURRENT_VERSION")" > "$VERSION_FILE"
493493
fi
494494
done
495+
496+
# Update version badge on README.md
497+
sed -i "s|https://img.shields.io/badge/GearLock-.*-blue.svg|https://img.shields.io/badge/GearLock-$(< "$VERSION_FILE")-blue.svg|g" "$_execDir/README.md"
495498
}
496499

497500
function gen.conventionalChangelog() {

0 commit comments

Comments
 (0)
Please sign in to comment.