From 2cee3ed13ad427c93b03e768e3c454b16fb8b5f8 Mon Sep 17 00:00:00 2001 From: Sergey Vilgelm Date: Fri, 31 Jul 2020 23:40:52 -0500 Subject: [PATCH] Update dist automatically for dependabot PRs --- .github/workflows/test.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6293d83629..6c793d44d7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,3 +24,22 @@ jobs: version: v1.29 args: --issues-exit-code=0 ./sample/... only-new-issues: true + dist: + if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'dependencies') + needs: [build, test] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref }} + - run: | + npm install + npm run prepare-deps + npm run build + - run: | + git config --local user.name "golangci" + git config --local user.email "golangci@localhost" + git add --update + git commit --message="Update dist" + git push origin HEAD: