Skip to content

Commit

Permalink
add auto-update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
psycofdj committed Mar 24, 2021
1 parent d1db4fc commit bf60e32
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bf60e32

Please sign in to comment.