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