From c87b2931b10e8c37d600ac33ee64e597fc8baa46 Mon Sep 17 00:00:00 2001 From: Thirumalesh Aaraveti Date: Tue, 23 Jul 2024 15:28:25 +0530 Subject: [PATCH] Moved the if condition to approve job --- .github/workflows/PR.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 3a4199f03..16c8d5521 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -14,6 +14,8 @@ concurrency: jobs: approve: # First step + # minimize potential vulnerabilities + if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }} runs-on: ubuntu-latest steps: - name: Approve @@ -25,8 +27,6 @@ jobs: strategy: matrix: python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] - # minimize potential vulnerabilities - if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }} steps: - uses: actions/checkout@v4 with: