From: George Joseph Date: Thu, 5 Oct 2023 16:23:13 +0000 (-0600) Subject: .github: Block PR tests until approved X-Git-Tag: 21.1.0-rc1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3561210c27888a87b86d8e8a9a42edf69e22f2d;p=thirdparty%2Fasterisk.git .github: Block PR tests until approved (cherry picked from commit 29e202085d86507afa4f181d4f2270a798faede4) --- diff --git a/.github/workflows/PROpenedOrUpdated.yml b/.github/workflows/PROpenedOrUpdated.yml index 2d7fecbf6b..6883065ebf 100644 --- a/.github/workflows/PROpenedOrUpdated.yml +++ b/.github/workflows/PROpenedOrUpdated.yml @@ -3,7 +3,8 @@ run-name: "PR ${{github.event.number}} ${{github.event.action}} by ${{ github.ac on: # workflow_dispatch: pull_request_target: - types: [opened, reopened, synchronize] +# types: [opened, reopened, synchronize] + types: [labeled] env: ASTERISK_REPO: ${{github.repository}} @@ -16,6 +17,7 @@ env: jobs: PROpenUpdateUnitTests: + if: ${{ github.event.label.name == vars.PR_ACCEPTANCE_TEST_LABEL }} runs-on: ubuntu-latest steps: - name: Job Start Delay @@ -97,6 +99,7 @@ jobs: --remove-label ${{vars.CHERRY_PICK_CHECKS_FAILED_LABEL}} \ --remove-label ${{vars.CHERRY_PICK_GATES_PASSED_LABEL}} \ --remove-label ${{vars.CHERRY_PICK_GATES_FAILED_LABEL}} \ + --remove-label ${{vars.PR_ACCEPTANCE_TEST_LABEL}} \ --add-label ${{vars.TESTING_IN_PROGRESS}} \ ${{env.PR_NUMBER}} || :