Skip to content

Commit 3bc60a3

Browse files
chore: api formal label (#3994)
(cherry picked from commit 307f77e)
1 parent 58bc92f commit 3bc60a3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/api_format.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ jobs:
1212
name: Format API PR
1313
runs-on: ubuntu-latest
1414
if: |
15-
github.event.pull_request.merged == true
16-
&& contains(github.event.pull_request.labels.*.name, 'api-format')
17-
&& (
18-
(github.event.action == 'labeled' && github.event.label.name == 'api-format')
19-
|| (github.event.action == 'closed')
20-
)
15+
github.event.action == 'labeled'
16+
&& github.event.label.name == 'api-format'
17+
&& github.event.pull_request.draft == false
18+
19+
2120
steps:
2221
- name: Retrieve Credentials
2322
id: import-secrets

0 commit comments

Comments
 (0)