Skip to content

Commit

Permalink
add go mods auto-tidy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking committed Feb 22, 2021
1 parent 298ee9d commit 55c16ef
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/mods.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: push

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.CZIBUILDBOT_GITHUB_TOKEN }}
- uses: actions/setup-go@v2
with:
go-version: '1.15.2'
- name: fix go modules
run: |
go mod tidy
git add go.*
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -m "tidy modules" || true
git push

0 comments on commit 55c16ef

Please sign in to comment.