Skip to content

Commit 7256c82

Browse files
committed
Add determine-validation step
1 parent 272cf94 commit 7256c82

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/labels.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,28 @@ jobs:
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..."

0 commit comments

Comments
 (0)