From d97688135029446a9f07d0d0884e247f00682ead Mon Sep 17 00:00:00 2001 From: Radoslaw Wicik Date: Fri, 19 Feb 2021 10:29:51 +0100 Subject: [PATCH] [EGD-5823] Fix Use full hash in artefacts Required for better management of artefacts in CI. --- .github/workflows/main.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f3eafe35d546a8f62fd66897e7db7c623e0f1f4..979c1d18779052d3e2919bf5922b56c93f628368 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -91,7 +91,7 @@ jobs: ./tools/run_unittests.sh enabled_unittests - name: store build artefact run: | - tar -S -cf /artefacts/build-$(git rev-parse --short HEAD).tar build-linux-Debug + tar -S -cf /artefacts/build-${GITHUB_SHA}.tar build-linux-Debug - name: start emulator run: | ./run_emulator_on_filesystem_image.sh 2>&1 > emulator.log & @@ -137,14 +137,9 @@ jobs: - build_linux_binary_and_run_tests runs-on: self-hosted steps: - - name: clone repository - uses: actions/checkout@v2 - with: - token: ${{ secrets.GitHub_PAT }} - submodules: recursive - name: get artefacts run: | - tar xf /artefacts/build-$(git rev-parse --short HEAD).tar + tar xf /artefacts/build-${GITHUB_SHA}.tar - name: check if all Unit Tests where run run: | ./tools/check_unittests.sh enabled_unit_tests @@ -156,12 +151,7 @@ jobs: needs: [ build_linux_binary_and_run_tests, check_run_unit_tests ] runs-on: self-hosted steps: - - name: clone repository - uses: actions/checkout@v2 - with: - token: ${{ secrets.GitHub_PAT }} - submodules: recursive - name: Delete Artefact run: | - rm -f /artefacts/build-$(git rev-parse --short HEAD).tar + rm -f /artefacts/build-${GITHUB_SHA}.tar