From f906efa8847b1b0056a25dd8eb31cef336dbd039 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Tue, 10 Mar 2020 10:39:37 +0000 Subject: [PATCH] :construction_worker_man: sync DINAR Pushed from https://github.com/itpp-labs/DINAR/.github/workflows/fork2repos.yml --- .github/workflows/DINAR-pr.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/DINAR-pr.yml b/.github/workflows/DINAR-pr.yml index e0a3656..9464fb9 100644 --- a/.github/workflows/DINAR-pr.yml +++ b/.github/workflows/DINAR-pr.yml @@ -178,14 +178,18 @@ jobs: run: | # TODO https://github.com/itpp-labs/DINAR/issues/42 exit 1 + - name: Prepare Artifact Folder + run: | + mkdir new-deps/ + # create dummy file to be sure that Artifact will be uploaded + echo ok > new-deps/.empty - name: Prepare DINAR with additional dependencies if: env.PR_MODULES_DEPS != '' || env.PR_DEPS != '' run: | # Save artifacts for local run and for integrations Tests bash DINAR/workflow-files/save-docker-layers.sh new-deps/ - echo $MODULES > new-deps/modules.txt + echo "${{ env.PR_MODULES_DEPS }}" > new-deps/modules.txt - name: Save DINAR with dependencies - if: env.PR_MODULES_DEPS != '' || env.PR_DEPS != '' uses: actions/upload-artifact@v1 with: name: new-deps @@ -227,9 +231,10 @@ jobs: name: new-deps path: new-deps/ - name: Check artifact - if: failure() run: | - echo "::set-env name=ARTIFACT::failure" + if [ ! -f new-deps/modules.txt ]; then + echo "::set-env name=ARTIFACT::empty" + fi - name: Configure Docker run: | bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN || secrets.GITHUB_TOKEN }} @@ -245,7 +250,7 @@ jobs: docker-compose -p DINAR -f DINAR/workflow-files/docker-compose-DINAR-pr.yml pull docker-compose -p DINAR -f DINAR/workflow-files/docker-compose-DINAR-pr.yml up --no-start - name: Apply new-deps artifact - if: env.ARTIFACT != 'failure' + if: env.ARTIFACT != 'empty' run: | bash DINAR/workflow-files/load-docker-layers.sh new-deps/