diff --git a/.github/workflows/pr-dependabot.yaml b/.github/workflows/pr-dependabot.yaml index 9e8a9e1f0c1c..61ad41f253dc 100644 --- a/.github/workflows/pr-dependabot.yaml +++ b/.github/workflows/pr-dependabot.yaml @@ -4,10 +4,10 @@ name: PR dependabot code generation and go modules fix on: pull_request: branches: - - dependabot/** + - pr-dependabot-exp-test push: branches: - - dependabot/** + - pr-dependabot-exp-test workflow_dispatch: permissions: @@ -39,7 +39,7 @@ jobs: - name: Update all modules run: make generate-modules - name: Update generated code - run: make generate + run: touch test.txt - uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # tag=v9.1.4 name: Commit changes with: @@ -47,3 +47,14 @@ jobs: author_email: 49699333+dependabot[bot]@users.noreply.github.com default_author: github_actor message: 'Update generated code' + - name: Trigger lint action + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.rest.actions.createWorkflowDispatch({ + owner: context.repo.owner, + repo: context.repo.repo, + workflow_id: 'pr-golangci-lint.yaml', + ref: "refs/remotes/origin/pr-dependabot-exp-test", + }) diff --git a/.github/workflows/pr-golangci-lint.yaml b/.github/workflows/pr-golangci-lint.yaml index 9da992ca7e4a..eb112599aa3a 100644 --- a/.github/workflows/pr-golangci-lint.yaml +++ b/.github/workflows/pr-golangci-lint.yaml @@ -3,6 +3,7 @@ name: PR golangci-lint on: pull_request: types: [opened, edited, synchronize, reopened] + workflow_dispatch: # Remove all permissions from GITHUB_TOKEN except metadata. permissions: {}