mirror of
https://github.com/glebarez/go-sqlite.git
synced 2026-04-22 23:27:12 +08:00
39af124c54
Bumps [schneegans/dynamic-badges-action](https://github.com/schneegans/dynamic-badges-action) from 1.4.0 to 1.6.0. - [Release notes](https://github.com/schneegans/dynamic-badges-action/releases) - [Changelog](https://github.com/Schneegans/dynamic-badges-action/blob/master/changelog.md) - [Commits](https://github.com/schneegans/dynamic-badges-action/compare/v1.4.0...v1.6.0) --- updated-dependencies: - dependency-name: schneegans/dynamic-badges-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: Badge Sqlite version
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
create-sqlite-version-badge:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.17
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v3
|
|
|
|
- name: go mod package cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
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,4)" >> $GITHUB_ENV
|
|
|
|
- name: Make version badge
|
|
uses: schneegans/dynamic-badges-action@v1.6.0
|
|
with:
|
|
auth: ${{ secrets.GIST_SECRET }}
|
|
gistID: 0fd7561eb29baf31d5362ffee1ae1702
|
|
filename: badge-sqlite-version-with-date.json
|
|
label: SQLite release
|
|
message: "${{ env.sqlite_version }}"
|
|
color: 2269d3
|
|
labelColor: 25292d |