diff --git a/.vsts/ci.yml b/.vsts/ci.yml index 73ce58f..8b13789 100644 --- a/.vsts/ci.yml +++ b/.vsts/ci.yml @@ -1,40 +1 @@ -name: PersonioAbscences_$(Build.BuildId) -trigger: - branches: - include: [main, master] - -schedules: -- - cron: '0 1 * * *' - displayName: 'Daily 1am run of PersonioAbscences' - branches: - include: [ main ] - always: true - -stages: -- - stage: run - displayName: Run Personio Abscence Notifier - condition: ne(variables['Build.Reason'], 'PullRequest') - pool: - vmImage: ubuntu-latest - jobs: - - - job: run - steps: - - - task: GoTool@0 - inputs: - version: '1.22.6' - displayName: "Install Go" - - - task: DownloadSecureFile@1 - name: config - inputs: - secureFile: personio_notifier.yml - displayName: "Download config file" - - - script: | - go run ./cmd/... -config=$(config.secureFilePath) - displayName: 'Run notifier' diff --git a/go.mod b/go.mod index c963158..fe301a2 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 github.com/kelseyhightower/envconfig v1.4.0 github.com/sirupsen/logrus v1.9.3 - gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c + gopkg.in/yaml.v3 v3.0.0 ) require golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect diff --git a/go.sum b/go.sum index 55098f7..c5ff163 100644 --- a/go.sum +++ b/go.sum @@ -16,5 +16,6 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JC golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0 h1:hjy8E9ON/egN1tAYqKb61G10WtihqetD4sz2H+8nIeA= +gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=