Skip to content

Commit 2cee3ed

Browse files
author
Sergey Vilgelm
committed
Update dist automatically for dependabot PRs
1 parent 25d72af commit 2cee3ed

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,22 @@ jobs:
2424
version: v1.29
2525
args: --issues-exit-code=0 ./sample/...
2626
only-new-issues: true
27+
dist:
28+
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'dependencies')
29+
needs: [build, test]
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v2
33+
with:
34+
fetch-depth: 0
35+
ref: ${{ github.event.pull_request.head.ref }}
36+
- run: |
37+
npm install
38+
npm run prepare-deps
39+
npm run build
40+
- run: |
41+
git config --local user.name "golangci"
42+
git config --local user.email "golangci@localhost"
43+
git add --update
44+
git commit --message="Update dist"
45+
git push origin HEAD:<name-of-remote-branch>

0 commit comments

Comments
 (0)