fix version badge

This commit is contained in:
glebarez
2022-01-19 15:39:24 +01:00
parent 1934a36d14
commit 619a5668ea
3 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('go.mod') }}
- name: request sqlite_version()
run: echo "sqlite_version=$(go test . -run '^TestSQLiteVersion$' -v | grep sqlite_version | tr -s ' ' | cut -d' ' -f3)" >> $GITHUB_ENV
run: echo "sqlite_version=$(go test . -run '^TestSQLiteVersion$' -v | grep sqlite_version | tr -s ' ' | cut -d' ' -f3,4)" >> $GITHUB_ENV
- name: Make version badge
uses: schneegans/dynamic-badges-action@v1.1.0

View File

@@ -1,4 +1,4 @@
[![Tests](https://github.com/glebarez/go-sqlite/actions/workflows/tests.yml/badge.svg)](https://github.com/glebarez/go-sqlite/actions/workflows/tests.yml)<br>
[![Tests](https://github.com/glebarez/go-sqlite/actions/workflows/tests.yml/badge.svg)](https://github.com/glebarez/go-sqlite/actions/workflows/tests.yml)
![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/glebarez/0fd7561eb29baf31d5362ffee1ae1702/raw/badge-sqlite-version-with-date.json)
# go-sqlite