From fd0ea7d498cf1c809ce93a6db3752e34ca7f2102 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 19 Jun 2023 15:33:43 +0200 Subject: [PATCH] fix .ci/nightly-project-dependencies.yaml (#1000) (#1001) Co-authored-by: Roberto Oliveira --- .ci/nightly-project-dependencies.yaml | 80 ++++++++++++++++++++++++++- 1 file changed, 77 insertions(+), 3 deletions(-) diff --git a/.ci/nightly-project-dependencies.yaml b/.ci/nightly-project-dependencies.yaml index 77ae760fb..93da3ce4d 100644 --- a/.ci/nightly-project-dependencies.yaml +++ b/.ci/nightly-project-dependencies.yaml @@ -1,8 +1,82 @@ version: "2.1" -extends: ./project-dependencies.yaml - dependencies: + - project: kiegroup/drools + mapping: + dependencies: + default: + - source: (\d*)\.(.*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)" + dependant: + default: + - source: (\d*)\.(.*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)" + + - project: kiegroup/kogito-runtimes + dependencies: + - project: kiegroup/drools + mapping: + dependencies: + default: + - source: (\d*)\.(.*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)" + dependant: + default: + - source: (\d*)\.(.*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)" + exclude: + - kiegroup/kogito-examples + - kiegroup/kogito-apps + - kiegroup/kogito-images + + - project: kiegroup/kogito-apps + dependencies: + - project: kiegroup/kogito-runtimes + mapping: + dependencies: + default: + - source: (\d*)\.(.*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)" + dependant: + default: + - source: (\d*)\.(.*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)" + exclude: + - kiegroup/kogito-examples + - kiegroup/kogito-runtimes + - kiegroup/kogito-images + + - project: kiegroup/kogito-examples + dependencies: + - project: kiegroup/kogito-runtimes + - project: kiegroup/kogito-apps + mapping: + dependencies: + default: + - source: (\d*)\.(.*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)" + dependant: + default: + - source: (\d*)\.(.*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)" + exclude: + - kiegroup/kogito-apps + - kiegroup/kogito-runtimes + - kiegroup/kogito-images + - project: kiegroup/kogito-images dependencies: - - project: kiegroup/kogito-examples \ No newline at end of file + - project: kiegroup/kogito-examples + mapping: + dependencies: + default: + - source: (\d*)\.(.*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)" + dependant: + default: + - source: (\d*)\.(.*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)" + exclude: + - kiegroup/kogito-runtimes + - kiegroup/kogito-apps + - kiegroup/kogito-examples \ No newline at end of file