From 048d68f3cdcf62a1bfe4c0f440011713ef085661 Mon Sep 17 00:00:00 2001 From: dlford Date: Thu, 26 Jan 2023 20:25:10 -0700 Subject: [PATCH] fix: default config file location --- .github/workflows/release.yml | 15 --------------- config/Load.go | 3 +-- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index de0a945..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,15 +0,0 @@ -on: - release: - types: [created] - -jobs: - release-linux-amd64: - name: release linux/amd64 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: wangyoucao577/go-release-action@v1.35 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - goos: linux - goarch: amd64 \ No newline at end of file diff --git a/config/Load.go b/config/Load.go index e4e5a1d..a07afa6 100644 --- a/config/Load.go +++ b/config/Load.go @@ -14,8 +14,7 @@ func (c *Config) Load() *Config { path = os.Args[1] } if path == "" { - // TODO: Change to /etc/blocklister.yml - path = "blocklister.yml" + path = "/etc/blocklister.yml" } yamlFile, err := ioutil.ReadFile(path)