Skip to content

Commit d7a7ced

Browse files
Update .github/workflows/gen-new-plot.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b498d0c commit d7a7ced

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/gen-new-plot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ jobs:
8080
CLEAN_TITLE="$ISSUE_TITLE"
8181
fi
8282
83+
# Validate TARGET_LIBRARY if specified
84+
if [ -n "$TARGET_LIBRARY" ]; then
85+
VALID_LIBS="matplotlib seaborn plotly bokeh altair plotnine pygal highcharts"
86+
if ! echo "$VALID_LIBS" | grep -qw "$TARGET_LIBRARY"; then
87+
echo "::error::Invalid library '$TARGET_LIBRARY'. Must be one of: $VALID_LIBS"
88+
exit 1
89+
fi
90+
fi
8391
# Check if issue was marked as duplicate
8492
COMMENTS=$(gh issue view ${{ github.event.issue.number }} --json comments -q '.comments[].body')
8593

0 commit comments

Comments
 (0)