Skip to content

ci: test ut

ci: test ut #32

Workflow file for this run

name: Pull Request Label
on: pull_request
jobs:
setup-label:
runs-on: ubuntu-latest
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: ./tools/github-actions/setup
- name: Determine labels
run: |
LABELS="$(yarn pr-labels --target="${{ github.base_ref || github.ref_name }}")"
echo "LABELS=$LABELS" >> $GITHUB_ENV
- uses: actions/github-script@v7
if: env.LABELS != '[]'
continue-on-error: true
with:
script: |
const [owner, repo] = '${{ github.repository }}'.split('/');
github.rest.issues.addLabels({
owner,
repo,
issue_number: context.issue.number,
labels: ${{ env.LABELS }}
})