runid

package
v1.30.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrGenerateRunId

func GetOrGenerateRunId(maybeRunId *string) (string, error)

GetOrGenerateRunId returns the runId if it is not nil, otherwise it reads the .run.id file and returns the value, or creates it with a new UUID, saves to file and returns the value.

func RemoveLocalRunId added in v1.22.4

func RemoveLocalRunId(runId *string) error

RemoveLocalRunId removes the .run.id file if it exists and the runId contains 'local' substring indicating local execution. In GHA we get run_id from TOML config, so we don't need to remove the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL