Skip to content

fix(actions): Exclude prod branch from community labels #2768

fix(actions): Exclude prod branch from community labels

fix(actions): Exclude prod branch from community labels #2768

Workflow file for this run

name: Add Community Label
on:
pull_request_target:
types: [opened]
branches:
- '!prod'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Verify
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.8.1
- name: Install Octokit
run: npm --prefix .github/workflows/scripts install @octokit/action
- name: Check if user is a community contributor
id: check
run: node .github/workflows/scripts/community-contribution-label.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}