-
Notifications
You must be signed in to change notification settings - Fork 47.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Use shared maintainer check for discord notifications
Uses the shared maintainer check workflow across the various workflows that need it
- Loading branch information
Showing
4 changed files
with
48 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: (Shared) Label Core Team PRs | ||
|
||
on: | ||
pull_request_target: | ||
|
||
env: | ||
TZ: /usr/share/zoneinfo/America/Los_Angeles | ||
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 | ||
|
||
jobs: | ||
check_maintainer: | ||
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main | ||
|
||
label: | ||
if: ${{ needs.check_maintainer.outputs.is_core_team }} | ||
runs-on: ubuntu-latest | ||
needs: check_maintainer | ||
steps: | ||
- name: Label PR as React Core Team | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: ${{ github.event.number }}, | ||
labels: ['React Core Team'] | ||
}); |