mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-16 15:38:28 +00:00
Update dist automatically for dependabot PRs
This commit is contained in:
parent
25d72af787
commit
f8f86bc1a4
1 changed files with 19 additions and 0 deletions
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
|
|
@ -24,3 +24,22 @@ jobs:
|
||||||
version: v1.29
|
version: v1.29
|
||||||
args: --issues-exit-code=0 ./sample/...
|
args: --issues-exit-code=0 ./sample/...
|
||||||
only-new-issues: true
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue