A collection of GitHub Actions for use in Golang projects.
Runs gofmt on files in the directory. Fails if any file is not properly formatted.
action "gofmt" {
uses = "sjkaliski/go-github-actions/[email protected]"
needs = "previous-action"
secrets = ["GITHUB_TOKEN"]
env {
GO_WORKING_DIR = "./path/to/go/files"
}
}To learn more about gofmt, visit the official docs.