From fde9463c6ec133fb6c6827e482886b40fc078177 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 27 Aug 2026 21:54:19 +0200 Subject: [PATCH] pr validation should also call detector labels workflow --- .github/workflows/pr_validation.yaml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr_validation.yaml b/.github/workflows/pr_validation.yaml index 13382ffad..baf5ae94b 100644 --- a/.github/workflows/pr_validation.yaml +++ b/.github/workflows/pr_validation.yaml @@ -19,7 +19,7 @@ jobs: name: Validate PR runs-on: ubuntu-latest outputs: - set_milestone: ${{ steps.validate.outputs.set_milestone }} + validated: ${{ steps.validate.outputs.validated }} steps: - name: Validate PR type and Breaking API @@ -27,10 +27,7 @@ jobs: uses: actions/github-script@v8 with: script: | - /* - * Set it to run milestone at the end by default - */ - core.setOutput('set_milestone', 'true'); + core.setOutput('validated', 'true'); /* * If triggered by label change, ignore unrelated labels. @@ -50,7 +47,7 @@ jobs: core.info( `Ignoring unrelated label change: ${changedLabel}` ); - core.setOutput('set_milestone', 'false'); + core.setOutput('validated', 'false'); return; } } @@ -209,10 +206,21 @@ jobs: milestone: needs: validate-pr - if: ${{ needs.validate-pr.outputs.set_milestone == 'true' }} + if: ${{ needs.validate-pr.outputs.validated == 'true' }} uses: ./.github/workflows/pr_milestone.yaml with: pr_number: ${{ github.event.pull_request.number }} permissions: pull-requests: write - contents: read \ No newline at end of file + contents: read + + + detector-labels: + needs: validate-pr + if: ${{ needs.validate-pr.outputs.validated == 'true' }} + uses: ./.github/workflows/pr_detector_labels.yaml + with: + pr_number: ${{ github.event.pull_request.number }} + permissions: + pull-requests: write + issues: read \ No newline at end of file