From 5233b6ca4e603dc22844b4f65ca78dcb139c2cbe Mon Sep 17 00:00:00 2001 From: Richard87 Date: Tue, 9 Apr 2024 09:23:43 +0200 Subject: [PATCH] cleanup --- .github/workflows/build.yaml | 2 ++ main.go | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 05624b6..94b1f5c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,6 +3,8 @@ on: push: tags: - '**' + branches: + - main workflow_dispatch: pull_request: branches: diff --git a/main.go b/main.go index f6641c4..a88521f 100644 --- a/main.go +++ b/main.go @@ -27,9 +27,7 @@ type Options struct { func main() { var opts Options - viper.SetConfigFile(".env") viper.AutomaticEnv() - _ = viper.ReadInConfig() if err := viper.Unmarshal(&opts); err != nil { log.Fatal().Msg(err.Error()) }