Limit ZEN17 and ZSE42 updates to EU and AU regions, add ZSE41 and ZSE44 #84
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: 'Z-Wave Bot: Label official PRs' | |
on: | |
pull_request: | |
types: [synchronize, reopened] | |
pull_request_review: | |
types: [submitted, edited] | |
jobs: | |
# ######################################################################### | |
# Labels PRs opened by a known manufacturer account | |
label-official: | |
# Don't run in forks, don't run for drafts | |
if: | | |
github.event_name == 'pull_request' && | |
github.event.pull_request.head.repo.full_name == github.repository && | |
github.event.pull_request.draft == false | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/github-script@v6 | |
with: | |
github-token: ${{secrets.BOT_TOKEN}} | |
script: | | |
const action = require(`${process.env.GITHUB_WORKSPACE}/.github/scripts/bot_label-official-prs.js`); | |
action({github, context}); | |
# ######################################################################### | |
# Labels PRs reviewed by a known manufacturer account | |
label-official-reviews: | |
# Don't run in forks, don't run for drafts | |
if: | | |
github.event_name == 'pull_request_review' && | |
github.event.pull_request.head.repo.full_name == github.repository && | |
github.event.pull_request.draft == false | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/github-script@v6 | |
with: | |
github-token: ${{secrets.BOT_TOKEN}} | |
script: | | |
const action = require(`${process.env.GITHUB_WORKSPACE}/.github/scripts/bot_label-official-reviews.js`); | |
action({github, context}); |