Skip to content

Fix action

Fix action #117

Workflow file for this run

name: test
on:
push:
branches:
- "*"
pull_request:
branches:
- main
env:
GO111MODULE: on
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.21.x
- uses: actions/checkout@v3
- run: go test ./...
test-action-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: git-describe-semver
uses: choffmeister/git-describe-semver@main
with:
version: latest
dir: .
fallback: v0.0.0-init
drop-prefix: true
prerelease-prefix: prefix
prerelease-suffix: suffix
prerelease-timestamped: true
- name: Verify output
run: |
if [[ -z "${{ steps.git-describe-semver.outputs.version }}" ]]; then
echo Output version is empty!
exit 1
fi
test-action-0-3-11:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: git-describe-semver
uses: choffmeister/git-describe-semver@main
with:
version: 0.3.11
dir: .
fallback: v0.0.0-init
drop-prefix: true
prerelease-prefix: prefix
prerelease-suffix: suffix
prerelease-timestamped: true
- name: Verify output
run: |
if [[ -z "${{ steps.git-describe-semver.outputs.version }}" ]]; then
echo Output version is empty!
exit 1
fi