From dfff7e6b40d230fe1c468a64b1379a769151ffe8 Mon Sep 17 00:00:00 2001 From: Jose Valdes Date: Tue, 10 Jan 2023 17:26:15 -0500 Subject: [PATCH] ci-verify: Run get-scripts only on main branch This change adjusts the get-script and get-script-with-verification jobs to only run for PRs where the target branch is `main`, so that release branches do not fail with the latest configuration. Closes #6512 Signed-off-by: Jose Valdes --- .github/workflows/verify.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index b731491f408..f4e2c6a382b 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -97,6 +97,7 @@ jobs: - run: make check-config-template get-script: + if: ${{ github.base_ref == 'main' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -104,6 +105,7 @@ jobs: - run: crio version get-script-with-verification: + if: ${{ github.base_ref == 'main' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3