mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-09-02 21:20:42 +02:00
no need of if as anything failing before the consequent jobs are skipped anyway
This commit is contained in:
@@ -19,9 +19,6 @@ jobs:
|
||||
name: Check PR Validation
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
outputs:
|
||||
should_run_detector_labels: ${{ steps.check.outputs.should_run_detector_labels }}
|
||||
|
||||
steps:
|
||||
- name: Check PR Validation result
|
||||
id: check
|
||||
@@ -130,25 +127,12 @@ jobs:
|
||||
`PR Validation for PR #${prNumber} succeeded. Running detector labels.`
|
||||
);
|
||||
|
||||
core.setOutput(
|
||||
'should_run_detector_labels',
|
||||
'true'
|
||||
);
|
||||
|
||||
detector-labels:
|
||||
name: Detect detector labels on synchronize
|
||||
needs: check-validation
|
||||
|
||||
if: >
|
||||
${{
|
||||
needs.check-validation.outputs.should_run_detector_labels == 'true'
|
||||
}}
|
||||
|
||||
uses: ./.github/workflows/pr_detector_labels.yaml
|
||||
|
||||
with:
|
||||
pr_number: ${{ github.event.pull_request.number }}
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
issues: read
|
||||
|
||||
Reference in New Issue
Block a user