This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
Bump pytest-mock from 3.10.0 to 3.11.1 #340
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Label new PR | |
# ℹ️ https://github.com/WordPress/openverse/blob/main/.github/GITHUB.md#label-new-pr | |
on: | |
pull_request_target: | |
types: | |
# Only set labels when the PR is created, this should fire `labeled` | |
# events that will trigger the checks defined in `pr_label_check.yml`. | |
- opened | |
jobs: | |
set_label: | |
name: Set labels | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger remote workflow | |
uses: felixp8/[email protected] | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
with: | |
owner: WordPress | |
repo: openverse | |
token: ${{ secrets.ACCESS_TOKEN }} # Cannot create repository dispatch using GITHUB_TOKEN | |
event_type: label_pr | |
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@v3 | |
- name: Add default label in case of failure | |
uses: actions-ecosystem/action-add-labels@v1 | |
if: ${{ failure() }} | |
with: | |
labels: "🚦 status: awaiting triage" |