From a962f885cf8f5b9c1da2b5688e0db90bd63c222e Mon Sep 17 00:00:00 2001 From: Christian Zunker Date: Tue, 12 Nov 2024 15:22:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Auto=20approve=20cnquery=20bump?= =?UTF-8?q?=20PRs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian Zunker --- .github/workflows/pr-test-lint.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-test-lint.yml b/.github/workflows/pr-test-lint.yml index bbf064c4..1804d6f3 100644 --- a/.github/workflows/pr-test-lint.yml +++ b/.github/workflows/pr-test-lint.yml @@ -91,9 +91,14 @@ jobs: go-auto-approve: runs-on: ubuntu-latest needs: [go-test, go-bench, golangci-lint, go-mod] - # For now, we only auto approve and merge go dep PRs because we have tests for this in place. + # For now, we auto approve and merge: + # - go dep PRs + # - cnquery update PRs + # because we have tests for this in place. # https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#startswith - if: ${{ startsWith(github.ref, 'refs/heads/dependabot/go_modules') && github.actor == 'dependabot[bot]' }} + if: | + (startsWith(github.ref, 'refs/heads/dependabot/go_modules') && github.actor == 'dependabot[bot]') || + (startsWith(github.ref, 'refs/heads/version/cnquery_update_v') && github.event.commits[0].author.username == 'mondoo-tools') permissions: contents: write pull-requests: write