Skip to content

add workflow to create release from a given Actions run #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 15, 2025

Conversation

kambala-decapitator
Copy link
Collaborator

What it does:

  1. downloads all artifacts from the given run as 2 groups: dependencies and text files that contain list of packages
  2. forms release notes using the text files
  3. creates GitHub release with the dependencies with tag/title YYYY-MM-DD

Example: https://github.com/kambala-decapitator/workflow-test/releases/tag/untagged-9c1f1c05e067610f5fd2 (created draft and uploaded text files instead of actual dependencies intentionally)

@kambala-decapitator
Copy link
Collaborator Author

CI run not required, can be merged without it

Comment on lines +18 to +26
run: |
gh run download ${{ github.event.inputs.run_id }} \
--repo ${{ github.repository }} \
--dir "$LISTS_DIR" \
--pattern "list of*"
gh run download ${{ github.event.inputs.run_id }} \
--repo ${{ github.repository }} \
--dir "$DEPENDENCIES_DIR" \
--pattern "dependencies-*"
Copy link
Member

Choose a reason for hiding this comment

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

I think we can also use download-artifact action here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

true, but with CLI tool it's shorter

@kambala-decapitator kambala-decapitator merged commit 48f99a8 into main Aug 15, 2025
0 of 18 checks passed
@kambala-decapitator kambala-decapitator deleted the release-from-run branch August 15, 2025 19:35
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