fix: config path as arg
Dev Version / Release (push) Successful in 1m52s Details

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 }}
GORELEASER_FORCE_TOKEN: "gitea"
- 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
uses: https://github.com/shallwefootball/s3-upload-action@master
with:

View File

@ -3,7 +3,7 @@ Get an E-Mail notification if a new Release of an Software is available for you
# 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)

View File

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