From f0b2aed8d3daa78cc9eb9a168dc6636be22dce23 Mon Sep 17 00:00:00 2001 From: Viktor Varland Date: Fri, 4 Jun 2021 12:36:54 +0200 Subject: [PATCH] feat(preview-pr): add workflow to preview PR on Netlify --- src/utils/config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/utils/config.js b/src/utils/config.js index 2c92e8de..2ad5f4aa 100755 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -56,6 +56,12 @@ const projectConfigs = { 'workflows', 'dhis2-verify-lib.yml' ), + 'workflow-preview-pr': path.join( + PROJECT_ROOT, + '.github', + 'workflows', + 'dhis2-preview-pr.yml' + ), }, lslint: path.join(PROJECT_ROOT, '.ls-lint.yml'), } @@ -99,6 +105,9 @@ const templateConfigs = { 'workflow-artifacts': url.parse( 'https://raw.githubusercontent.com/dhis2/workflows/master/ci/dhis2-artifacts.yml' ), + 'workflow-preview-pr': url.parse( + 'https://raw.githubusercontent.com/dhis2/workflows/master/ci/dhis2-preview-pr.yml' + ), }, lslint: path.join(TEMPLATE_DIR, 'ls-lint-base.yml'), }