Skip to content

chore(deps): update dependency ag-grid-angular to ~31.3.0 - autoclosed #7277

chore(deps): update dependency ag-grid-angular to ~31.3.0 - autoclosed

chore(deps): update dependency ag-grid-angular to ~31.3.0 - autoclosed #7277

Workflow file for this run

name: Pull Request Label
on: pull_request
permissions:
contents: read
jobs:
setup-label:
runs-on: ubuntu-latest
env:
SKIP_ON_LABELS: '["cascading"]'
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
permissions:
pull-requests: write
issues: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
if: env.LABELS != '[]'
continue-on-error: true
with:
script: |
const [owner, repo] = '${{ github.repository }}'.split('/');
const pLabels = github.rest.issues.listLabelsOnIssue({
owner,
repo,
issue_number: context.issue.number
});
return pLabels.then((labels) => {
const skipLabelUpdate = labels.data.some(({ name }) => ${{ env.SKIP_ON_LABELS }}.includes(name));
if (skipLabelUpdate) {
github.log.info('Skip label setting for this Pull Request.');
return ;
}
return github.rest.issues.addLabels({
owner,
repo,
issue_number: context.issue.number,
labels: ${{ env.LABELS }}
});
});