From 9c136012cb33f8587ab58f1fe2035540543cc0ea Mon Sep 17 00:00:00 2001 From: Xavier MARCELET Date: Wed, 24 Mar 2021 13:54:11 +0100 Subject: [PATCH] add auto-update --- .github/workflows/autoupdate.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/autoupdate.yml diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml new file mode 100644 index 00000000..be2613f8 --- /dev/null +++ b/.github/workflows/autoupdate.yml @@ -0,0 +1,26 @@ +name: auto-update +on: + schedule: + # runs every two weeks + - cron: '0 8 1 * *' + workflow_dispatch: + +jobs: + auto-update: + runs-on: ubuntu-latest + + steps: + - name: Checkout the head commit of the branch + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Go setup + uses: actions/setup-go@v2 + + - name: Run auto dependency update + uses: psycofdj/dependencies-autoupdate@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + update-command: go get -u -t ./... && go mod tidy && go mod vendor && go build ./... && go test ./... + base-branch-name: master