Skip to content

Commit feb8ab6

Browse files
committed
Skip Meta import labeling after canceled classification
1 parent fa3f4f2 commit feb8ab6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/meta-import-risk.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ jobs:
4646
4747
label:
4848
needs: classify
49-
if: always() && github.repository == 'react/react-native'
49+
# A newer PR event cancels the old run. Do not treat its missing output as
50+
# an unknown risk; only an explicit unknown from the classifier is fail-safe.
51+
if: >-
52+
always() && !cancelled() && github.repository == 'react/react-native' &&
53+
contains(fromJSON('["low","high","unknown"]'), needs.classify.outputs.risk)
5054
runs-on: ubuntu-latest
5155
permissions:
5256
# Applying a label to a PR requires PR write access, even though the

0 commit comments

Comments
 (0)