Skip to content

Labeler - Set PR labels #579

Labeler - Set PR labels

Labeler - Set PR labels #579

name: Labeler - Set PR labels
on:
workflow_run:
workflows: [Labeler - Get PR labels]
types:
- completed
jobs:
set-missing-labels:
permissions:
actions: read # For downloading artifacts
contents: read # For accessing repository files
pull-requests: write # For assigning a label to a PR
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Download artifact and set labels
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require('./packages/tools/pie-monorepo-utils/pr-labeler/set-labels.js');
await script({ github, context });