Skip to content

adjust manual workflow for model publish#470

Merged
HenryNdubuaku merged 1 commit intomainfrom
manual_publish_ajdustment
Feb 27, 2026
Merged

adjust manual workflow for model publish#470
HenryNdubuaku merged 1 commit intomainfrom
manual_publish_ajdustment

Conversation

@jakmro
Copy link
Copy Markdown
Collaborator

@jakmro jakmro commented Feb 27, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 27, 2026 17:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the model publishing workflow by standardizing YAML serialization to use yaml.safe_dump() for security, adding more input parameters for manual workflow dispatch (pipeline_tag, tags, description), and converting bash string concatenation to proper array handling for safer command argument passing.

Changes:

  • Replaced yaml.dump() with yaml.safe_dump() for YAML serialization in Python code
  • Improved license extraction logic to use getattr() for safer attribute access
  • Added three new workflow inputs: pipeline_tag, tags, and description for manual model publishing
  • Converted bash FLAGS from string concatenation to array-based argument handling

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
python/src/publish_to_hf.py Standardized YAML serialization with yaml.safe_dump() and improved license attribute access safety
.github/workflows/publish_to_hf.yml Added new workflow input parameters and converted bash string flags to proper array handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HenryNdubuaku HenryNdubuaku merged commit 0006551 into main Feb 27, 2026
5 of 6 checks passed
HenryNdubuaku pushed a commit to cattermelon1234/cactus that referenced this pull request Feb 27, 2026
cattermelon1234 pushed a commit to cattermelon1234/cactus that referenced this pull request Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants