Merge pull request #2475 from restic/use-github-actions

Use GitHub Actions for CI
This commit is contained in:
Alexander Neumann
2020-11-08 17:30:12 +01:00
committed by GitHub
5 changed files with 246 additions and 94 deletions

View File

@@ -32,9 +32,9 @@ func getStringVar(name, defaultValue string) string {
func getBoolVar(name string, defaultValue bool) bool {
if e := os.Getenv(name); e != "" {
switch e {
case "1":
case "1", "true":
return true
case "0":
case "0", "false":
return false
default:
fmt.Fprintf(os.Stderr, "invalid value for variable %q, using default\n", name)