Skip to content

Release (Manual)

Release (Manual) #9

Workflow file for this run

name: Manual trigger
on:
workflow_dispatch:
inputs:
name:
description: "Semver - major, minor, patch"
default: "patch"
jobs:
semver:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.sha }} # required for better experience using pre-releases
#fetch-depth: '0'
- name: Checkout go
uses: actions/setup-go@v4
with:
go-version: '1.22' # The Go version to download (if necessary) and use.
- name: Go version
id: Version
run: go version
- name: Go download
run: go mod download
- name: Go test
run: go test -v ./...
continue-on-error: false
- name: Create release
run: |
echo "Hello ${{ github.event.inputs.name }}"
- name: Create release
run: |
echo ${{ github.event.inputs.name }} > version
git config --global user.email "release-bot@tfswitch.com"
git config --global user.name "release-bot"
git add .
git commit -m "#{{ github.event.inputs.name }} - Setting semantic version"
git push
echo "Hello ${{ github.event.inputs.name }}"