Skip to content

Commit

Permalink
Change order of artefacts upload
Browse files Browse the repository at this point in the history
  • Loading branch information
vycius committed Jul 18, 2024
1 parent a794eb7 commit d93ada9
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions .github/workflows/check-for-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,34 +59,13 @@ 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:
name: data-source-checksums-diff.txt
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 }}"
Expand Down

0 comments on commit d93ada9

Please sign in to comment.