Skip to content

feat(pie-monorepo): DSW-000 bump some components to v1 #10600

feat(pie-monorepo): DSW-000 bump some components to v1

feat(pie-monorepo): DSW-000 bump some components to v1 #10600

Workflow file for this run

name: Pull Request Labeler
on: pull_request_target
# By default, pull_request_target runs when the activity type is opened, synchronize, or reopened
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#pull_request_target
jobs:
categorise:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# Since this action runs on "pull_request_target", the current context is the "main" branch
# We need to pull the branch PR before performing the comparison in the "Add Missing Labels" step
- name: Fetch branch PR
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
run: |
git fetch origin pull/"$PR_NUMBER"/head:"$PR_BRANCH_NAME"
- name: Add Missing Labels
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}
PR_BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
with:
github-token: ${{ secrets.CHANGESETS_TOKEN }}
script: |
const { PR_BRANCH_NAME } = process.env
const script = require('./.github/workflows/add-missing-labels/add-missing-labels.js')
await script({ github, context, prBranchName: PR_BRANCH_NAME });
- name: Labeler
uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0
with:
configuration-path: '.github/project-labeler.yml'
repo-token: '${{ secrets.GITHUB_TOKEN }}'
# Category labels will be removed if they no longer apply
sync-labels: true