Skip to content
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

Link to build artifacts in PR comments #796

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

benjamink
Copy link
Contributor

@benjamink benjamink commented Sep 21, 2024

This change to the autobuild.yml GitHub Action will upload the build artifacts for each of the firmware builds when changes are pushed to a PR & comment in the PR with links to download the latest artifacts. Subsequent pushes to the PR will rebuild the artifacts & the links in the persistent comment will be updated to point to the new artifacts. This workflow will only create a single comment in a PR with the links & just keep updating that one comment so it doesn't become noisy.

By default GitHub stores build artifacts for 90 days & then they are automatically deleted.

This is an example of how the comment should look:
image

@benjamink benjamink marked this pull request as draft September 21, 2024 01:32
@dillera
Copy link
Contributor

dillera commented Sep 23, 2024

This is a draft- do you want it merged- need to flip it to a real PR.

@benjamink
Copy link
Contributor Author

Converting this to ready for review. I was tempted to tweak it more to add the short SHA to the artifact names but I think we should just merge this to see if it actually works first.

@benjamink benjamink marked this pull request as ready for review September 23, 2024 20:36
@benjamink benjamink force-pushed the artifact-links-in-pr branch from 4781b5c to 9906b66 Compare October 1, 2024 12:22
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