Skip to content

Commit

Permalink
Update dist automatically for dependabot PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Vilgelm committed Aug 1, 2020
1 parent 25d72af commit 2cee3ed
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -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:<name-of-remote-branch>

0 comments on commit 2cee3ed

Please sign in to comment.