Files
actions/go-build
Ismo Vuorinen a86ba89ead fix: correct sed pattern in go-build Dockerfile parsing
Remove unintended space in sed replacement pattern that was extracting
golang version from Dockerfile.

Before: s/.*golang:([0-9]+(\.[0-9]+)*)(-[^:]*)?.*/ \1/p
After:  s/.*golang:([0-9]+(\.[0-9]+)*)(-[^:]*)?.*/\1/p

The leading space in the replacement would have caused version strings
to have unwanted whitespace, potentially breaking version validation.
2025-11-21 08:11:56 +02:00
..

ivuorinen/actions/go-build

Go Build

Description

Builds the Go project.

Inputs

name description required default
go-version

Go version to use.

false ""
destination

Build destination directory.

false ./bin
max-retries

Maximum number of retry attempts for go mod download operations

false 3
token

GitHub token for authentication

false ""

Outputs

name description
build_status

Build completion status (success/failure)

test_status

Test execution status (success/failure/skipped)

go_version

Version of Go used

binary_path

Path to built binaries

coverage_path

Path to coverage report

Runs

This action is a composite action.

Usage

- uses: ivuorinen/actions/go-build@main
  with:
    go-version:
    # Go version to use.
    #
    # Required: false
    # Default: ""

    destination:
    # Build destination directory.
    #
    # Required: false
    # Default: ./bin

    max-retries:
    # Maximum number of retry attempts for go mod download operations
    #
    # Required: false
    # Default: 3

    token:
    # GitHub token for authentication
    #
    # Required: false
    # Default: ""