mirror of
https://github.com/werf/actions.git
synced 2026-02-05 10:56:23 +03:00
feat: ignore initialization of virtual merge commits
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
This commit is contained in:
@@ -31672,6 +31672,10 @@ exports.SetupKubeConfig = SetupKubeConfig;
|
||||
function ProcessGitHubContext() {
|
||||
if (github_1.context.eventName === 'pull_request') {
|
||||
if (github_1.context.payload.pull_request) {
|
||||
// Do nothing if virtual merge variable is already set
|
||||
if (process.env.WERF_VIRTUAL_MERGE) {
|
||||
return;
|
||||
}
|
||||
const baseSha = github_1.context.payload.pull_request.base.sha;
|
||||
const headSha = github_1.context.payload.pull_request.head.sha;
|
||||
process.env.WERF_VIRTUAL_MERGE = '1';
|
||||
|
||||
Reference in New Issue
Block a user