From 55c16ef9c0fc103757f61a881ea25698b3dbc14a Mon Sep 17 00:00:00 2001 From: Ryan King Date: Mon, 22 Feb 2021 10:53:29 -0800 Subject: [PATCH] add go mods auto-tidy workflow --- .github/workflows/mods.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/mods.yml diff --git a/.github/workflows/mods.yml b/.github/workflows/mods.yml new file mode 100644 index 00000000..27a3a7a8 --- /dev/null +++ b/.github/workflows/mods.yml @@ -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 +