From d93ada996be52905cca619868bda493378bfad01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karolis=20Vy=C4=8Dius?= Date: Thu, 18 Jul 2024 11:31:10 +0300 Subject: [PATCH] Change order of artefacts upload --- .github/workflows/check-for-updates.yml | 35 ++++++++++--------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/check-for-updates.yml b/.github/workflows/check-for-updates.yml index 280da72..19440a3 100644 --- a/.github/workflows/check-for-updates.yml +++ b/.github/workflows/check-for-updates.yml @@ -29,12 +29,26 @@ jobs: - name: Create database run: ./create-database.sh + - name: Upload data-source-checksums.txt artifact + uses: actions/upload-artifact@v4 + with: + name: data-source-checksums.txt + path: data-sources/data-source-checksums.txt + if-no-files-found: error + - name: Download latest data source hashes run: wget -O published-data-source-checksums.txt "https://github.com/govlt/national-boundaries-api/releases/latest/download/data-source-checksums.txt" - name: TODO remove run: echo "Hello hello. New release" >> data-sources/data-source-checksums.txt + - name: Upload published-data-source-checksums.txt artifact + uses: actions/upload-artifact@v4 + with: + name: published-data-source-checksums.txt + path: published-data-source-checksums.txt + if-no-files-found: error + - name: Check that the files are the exact same id: comparison uses: LouisBrunner/diff-action@v2.0.0 @@ -45,20 +59,6 @@ jobs: tolerance: same output: data-source-checksums-diff.txt - - name: Upload published-data-source-checksums.txt artifact - uses: actions/upload-artifact@v4 - with: - name: published-data-source-checksums.txt - path: published-data-source-checksums.txt - if-no-files-found: error - - - name: Upload data-source-checksums.txt artifact - uses: actions/upload-artifact@v4 - with: - name: data-source-checksums.txt - path: data-source-checksums.txt - if-no-files-found: error - - name: Upload data-source-checksums-diff.txt artifact uses: actions/upload-artifact@v4 with: @@ -66,13 +66,6 @@ jobs: path: data-source-checksums-diff.txt if-no-files-found: error - - name: Upload data-source-checksums.txt artifact - uses: actions/upload-artifact@v4 - with: - name: data-source-checksums.txt - path: app/data-source-checksums.txt - if-no-files-found: error - - name: Output result run: | echo "Files identical: ${{ steps.comparison.outputs.passed }}"