We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 214ed8f commit cc7e719Copy full SHA for cc7e719
.github/workflows/issue_to_pr.yml
@@ -38,6 +38,7 @@ jobs:
38
- name: Determine category from labels
39
id: determineCategory
40
run: |
41
+ echo "Labels: ${{ github.event.issue.labels.*.name }}"
42
category=$(
43
if [[ $(echo "${{ github.event.issue.labels.*.name }}" | grep -q 'examples') ]]; then
44
echo 'examples'
@@ -49,6 +50,10 @@ jobs:
49
50
echo 'library'
51
fi
52
)
53
+ if [ -z "$category" ]; then
54
+ echo "Category is empty. Please ensure the issue has a valid label."
55
+ exit 1
56
+ fi
57
echo "category=$category" >> $GITHUB_OUTPUT
58
echo "Category found: $category"
59
0 commit comments