Skip to content

Bump github.com/spf13/viper from 1.18.2 to 1.19.0 (#96) #15

Bump github.com/spf13/viper from 1.18.2 to 1.19.0 (#96)

Bump github.com/spf13/viper from 1.18.2 to 1.19.0 (#96) #15

Workflow file for this run

name: "New Release"
on:
workflow_dispatch:
inputs:
version:
description: "Tag name in semver format. Example: v0.0.1"
required: true
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
env:
GO: "1.19"
jobs:
bump-version:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO }}
- name: Configure Git
run: |
git config user.name "sv-tools-bot"
git config user.email "sv.go.tools@gmail.com"
git fetch --all
- name: Create Tag
run: |
docker run --rm -v $PWD:/mount -w /mount svtools/bumptag:latest ${{ github.event.inputs.version }}
- name: Push Tag
run: git push origin --tags
release-lib:
if: github.event_name == 'push'
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist --config .github/goreleaser-lib.yml
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}