Skip to content

Add codemeta.json update step to prepare-release workflow#85

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/investigate-issue-76
Draft

Add codemeta.json update step to prepare-release workflow#85
Copilot wants to merge 1 commit intomainfrom
copilot/investigate-issue-76

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 26, 2026

codemeta.json must be updated manually on each release because the reusable prepare-release workflow from matbox-actions doesn't include this step.

Adds an update-codemeta job to prepare-release.yml that runs after the reusable workflow completes:

  • Checks out main via SSH deploy key for push access
  • Derives the version tag from github.ref_name (tag push) or v + inputs.version (manual dispatch)
  • Runs the existing updateCodeMetaFile.m to update version, downloadUrl, and dateModified
  • Commits and pushes only if codemeta.json actually changed
  • Sets explicit permissions: contents: read (push uses SSH, not GITHUB_TOKEN)

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.

2 participants