diff --git a/.github/workflows/add_label.yml b/.github/workflows/add_label.yml index 72a7e27ef..54dd3b267 100644 --- a/.github/workflows/add_label.yml +++ b/.github/workflows/add_label.yml @@ -14,7 +14,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | const { execSync } = require('child_process') @@ -24,3 +24,8 @@ jobs: console.log(files) + const packagesFiles = files.filter(file => file.startsWith('packages/')) + const packages = packagesFiles.map(file => file.split('/')[1]) + const uniquePackages = new Set(packages) + console.log(uniquePackages) +