Skip to content

ci: script to add label to PR based on edited package #2

ci: script to add label to PR based on edited package

ci: script to add label to PR based on edited package #2

Workflow file for this run

name: Add package labels to PR
on:
pull_request:
types:
- opened
- reopened
- synchronize
permissions:
actions: read
contents: read
pull-requests: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci --legacy-peer-deps
- uses: nrwl/nx-set-shas@v4
- run: ./scripts/add_labels_to_pr.sh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}