-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix pr test job submission #132
Fix pr test job submission #132
Conversation
if (!fs.existsSync(temp)){ | ||
fs.mkdirSync(temp); | ||
} | ||
fs.writeFileSync(path.join(temp, 'build_url.zip'), Buffer.from(download.data)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it ZIP-ped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it comes from the upload-action which zips the content by default: https://github.com/actions/upload-artifact?tab=readme-ov-file#inputs. This code comes from github example
This change allows to keep the base URL in one place and helps avoid mistakes when changing it. Signed-off-by: Milosz Wasilewski <[email protected]>
This is required for running tests after PR builds. Tests triggered after PR build will use the artifact file to retrieve base download URL. Signed-off-by: Milosz Wasilewski <[email protected]>
Workflows triggered by "workflow_run" event don't receive any variables from triggering event. the only way to pass the variable is throught the uploaded artifact test-pr workflow is triggered by PR build completion. This patch allows test-pr to retrieve the build_url from saved artifact before triggering tests. Signed-off-by: Milosz Wasilewski <[email protected]>
Display title is set to title of the PR that triggered original build Signed-off-by: Milosz Wasilewski <[email protected]>
104d173
to
6f77043
Compare
I rebased on top of current main and addressed the comments. |
No description provided.