From 98b01993f30022c0a49977c8d92f91917d793f93 Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Mon, 24 Aug 2020 10:48:12 +0200 Subject: [PATCH] Update Dependabot PR to update go.sum file and vendoring to fix Dependabot PR issues Signed-off-by: Guillaume Lours --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a629b00..51ad468 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,24 @@ jobs: - name: Check out code uses: actions/checkout@v2 + # https://github.com/dependabot/dependabot-core/issues/1995 + - name: Update dependabot PR + if: github.event.pusher.name == 'dependabot-preview[bot]' + run: | + git config --local user.email "compose-ref-ci@docker.com" + git config --local user.name "CI GitHub Action" + go mod tidy -v + go mod vendor -v + git add . + git commit -sm'Update go.sum and vendoring after dependabot PR' + - name: Update dependabot PR if needed + if: github.event.pusher.name == 'dependabot-preview[bot]' + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} + force: false + - name: Lint run: DOCKER_BUILDKIT=1 make lint