Open stylesuxx opened 1 year ago
To solve this in a way where anyone's PRs can be built there are two options:
We need to make sure that the following conditions are met:
To achieve this, we would need to move the whole source files into their own directory, leaving the build tools outside. This would allow us To build from the target branch, pull in the changed source, swap it out and build.
This would limit us in the following way:
We would need to get rid of the password protected build env - I personally would not prefer to do that.
With the refactored code structure we can now easily swap src directory with the one from the potential PR and build without having to think about anything else.
Since we are now running on the pull_request_target event, wrong builds are attached to PRs since it will always build the head against which it is running - not against the actual changes.
So, the workflow needs to be more complex, checking out the actual PR it is being triggered from and building that...