fix: config path as arg
All checks were successful
Dev Version / Release (push) Successful in 1m52s

This commit is contained in:
Kekskurse 2023-08-06 15:02:27 +02:00
parent eec88e05a9
commit a9eaaf4df4
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4
3 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ jobs:
GITEA_TOKEN: ${{ secrets.TOKEN }} GITEA_TOKEN: ${{ secrets.TOKEN }}
GORELEASER_FORCE_TOKEN: "gitea" GORELEASER_FORCE_TOKEN: "gitea"
- name: Copy deb to publish folder - name: Copy deb to publish folder
run: mkdir publish; cp dist/softwatch_linux_amd64_v1/softwatch publish/softwatch_linux_amd64; cp dist/softwatch_linux_arm_7/softwatch publish/softwatch_linux_arm_7 run: mkdir publish; cp dist/softwatch_linux_amd64_v1/softwatch publish/softwatch-stable_linux_amd64; cp dist/softwatch_linux_arm_7/softwatch publish/softwatch-stable_linux_arm_7
- name: Upload to s3 - name: Upload to s3
uses: https://github.com/shallwefootball/s3-upload-action@master uses: https://github.com/shallwefootball/s3-upload-action@master
with: with:

View file

@ -3,7 +3,7 @@ Get an E-Mail notification if a new Release of an Software is available for you
# Setup # Setup
Download the Version you want to use: Download the Version you want to use, make the file executable, create a config.yml run `./softwatch config.yml`
## Linux ARM7 (Raspberry PI) ## Linux ARM7 (Raspberry PI)

View file

@ -30,7 +30,7 @@ type software struct {
} }
func getConfig() config { func getConfig() config {
data, err := os.ReadFile("config.yml") data, err := os.ReadFile(os.Args[1])
if err != nil { if err != nil {
log.Fatal().Err(err).Msg("cant read config") log.Fatal().Err(err).Msg("cant read config")
} }