Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Addition of "waiting for triage" label in case label_pr.yml fails (#373)

vortex739a065aea5742
diff --git a/.github/workflows/label_new_pr.yml b/.github/workflows/label_new_pr.yml
index ecf799a66..086e13440 100644
--- a/.github/workflows/label_new_pr.yml
+++ b/.github/workflows/label_new_pr.yml
@@ -25,3 +25,10 @@ jobs:
client_payload: ${{ format('{{"pr_url":"{0}"}}', env.PR_URL) }}
wait_time: 5 # check every 5 seconds
max_time: 120 # timeout after 2 minutes
+
+ - uses: actions/checkout@v2
+ - name: Add default label in case of failure
+ uses: actions-ecosystem/action-add-labels@v1
+ if: ${{ failure() }}
+ with:
+ labels: "🚦 status: awaiting triage"