From d171856ad92f0dd1851bd2e6d3332eed2ac86489 Mon Sep 17 00:00:00 2001 From: zhujian Date: Thu, 7 Mar 2024 08:45:58 +0000 Subject: [PATCH] :seedling: Add pr-verify action Signed-off-by: zhujian --- .github/workflows/pr-verify.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pr-verify.yml diff --git a/.github/workflows/pr-verify.yml b/.github/workflows/pr-verify.yml new file mode 100644 index 000000000..fbe79ca70 --- /dev/null +++ b/.github/workflows/pr-verify.yml @@ -0,0 +1,26 @@ +name: PR Verifier + +on: + # NB: using `pull_request_target` runs this in the context of + # the base repository, so it has permission to upload to the checks API. + # This means changes won't kick in to this file until merged onto the + # main branch. + pull_request_target: + types: [opened, edited, reopened, synchronize] + +permissions: + contents: read + +jobs: + verify: + name: verify PR contents + permissions: + checks: write + pull-requests: read + runs-on: ubuntu-latest + steps: + - name: Verifier action + id: verifier + uses: kubernetes-sigs/kubebuilder-release-tools@v0.4.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }}