From 2b0cfb31a09e0b76c473aff2ed6d8eecb5849526 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Tue, 17 Nov 2026 17:23:49 +0000 Subject: [PATCH] Updating github-config --- .github/workflows/label-pr.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index 41c55ce4..d6fa5872 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -26,15 +26,15 @@ jobs: issues: write # add the semver label pull-requests: write # update the pull request's labels steps: - - name: Detect existing label + - name: Detect existing semver label id: detect_label run: | set -euo pipefail - label_exists=$(jq -r '.pull_request.labels // [] | map(.name) | length > 0' "${GITHUB_EVENT_PATH}") - echo "label_exists=${label_exists}" >> "${GITHUB_OUTPUT}" + semver_label_exists=$(jq -r '.pull_request.labels // [] | map(.name) | any(startswith("semver:"))' "${GITHUB_EVENT_PATH}") + echo "semver_label_exists=${semver_label_exists}" >> "${GITHUB_OUTPUT}" - name: Auto-label Semver - if: ${{ github.event.pull_request.head.repo.full_name == github.repository && steps.detect_label.outputs.label_exists != 'true' }} + if: ${{ github.event.pull_request.head.repo.full_name == github.repository && steps.detect_label.outputs.semver_label_exists != 'true' }} uses: paketo-buildpacks/github-config/actions/pull-request/auto-semver-label@main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}