File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 const labels = context.payload.pull_request.labels.map(label => label.name);
2121 return labels;
2222 result-encoding : string
23+
24+ - name : Determine Validation Type
25+ id : determine-validation
26+ run : |
27+ labels="${{ steps.get-labels.outputs.result }}"
28+ echo "PR Labels: $labels"
29+
30+ if echo "$labels" | grep -q "full validation"; then
31+ echo "validation_type=full" >> $GITHUB_OUTPUT
32+ elif echo "$labels" | grep -q "quick validation"; then
33+ echo "validation_type=quick" >> $GITHUB_OUTPUT
34+ else
35+ echo "No specific validation label found. Defaulting to full validation."
36+ echo "validation_type=full" >> $GITHUB_OUTPUT
37+ fi
38+
39+ cat $GITHUB_OUTPUT
40+
41+ - name : Run Full Validation
42+ if : ${{ steps.determine-validation.outputs.validation_type == 'full' }}
43+ run : echo "Running Full Validation..."
44+
45+ - name : Run Quick Validation
46+ if : ${{ steps.determine-validation.outputs.validation_type == 'quick' }}
47+ run : echo "Running Quick Validation..."
You can’t perform that action at this time.
0 commit comments