From a68bd4acba6f70cc0c1699c47f769e9618459676 Mon Sep 17 00:00:00 2001 From: Karl Cardenas <29551334+karl-cardenas-coding@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:45:52 -0700 Subject: [PATCH] chore: api formal label (#3994) (cherry picked from commit 307f77e47084318ac99b43e442abe67d5fb00fb2) --- .github/workflows/api_format.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/api_format.yaml b/.github/workflows/api_format.yaml index 5fd033604b..86d07bd6b2 100644 --- a/.github/workflows/api_format.yaml +++ b/.github/workflows/api_format.yaml @@ -12,12 +12,11 @@ jobs: name: Format API PR runs-on: ubuntu-latest if: | - github.event.pull_request.merged == true - && contains(github.event.pull_request.labels.*.name, 'api-format') - && ( - (github.event.action == 'labeled' && github.event.label.name == 'api-format') - || (github.event.action == 'closed') - ) + github.event.action == 'labeled' + && github.event.label.name == 'api-format' + && github.event.pull_request.draft == false + + steps: - name: Retrieve Credentials id: import-secrets