Merge pull request #519 from glours/update_dependabot_pr

Update dependabot PR to update go.sum file
This commit is contained in:
Guillaume Lours 2020-08-20 14:34:27 +02:00 committed by GitHub
commit 789f556876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -18,6 +18,24 @@ jobs:
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
# https://github.com/dependabot/dependabot-core/issues/1995
- name: Update dependabot PR
if: github.event.pusher.name == 'dependabot-preview'
run: |
git config --local user.email "compose-cli-ci@docker.com"
git config --local user.name "CI GitHub Action"
go mod tidy -v
git add .
git commit -sm'Update go.sum after dependabot PR'
- name: Update dependabot PR if needed
if: github.event.pusher.name == 'dependabot-preview'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
force: false
- name: Validate go-mod is up-to-date and license headers
run: make validate