diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 4e6ff4b1..c2cebaf9 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -88,11 +88,13 @@ jobs: - name: Remove old size labels id: remove_labels uses: actions/github-script@v7 + env: + NEW_SIZE_LABEL: ${{ env.label }} with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | const sizeLabels = ['size:s', 'size:m', 'size:l', 'size:xl', 'size:xxl']; - const newLabel = ${{ env.label }}; + const newLabel = "${{ process.env.NEW_SIZE_LABEL }}"; const currentLabels = ${{ steps.fetch_labels.outputs.result }}; const labelsToRemove = currentLabels.filter(label => sizeLabels.includes(label) && label !== newLabel); for (const label of labelsToRemove) {