Skip to content

Commit

Permalink
Change update checking order
Browse files Browse the repository at this point in the history
  • Loading branch information
vycius committed Jul 30, 2024
1 parent 478ca6d commit 81a92b3
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/basemap-vector-data-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@ jobs:
working-directory: output
run: md5sum houses-espg-4326.gpkg.zip >> checksums.txt

- name: Download latest data source hashes
run: wget -O published-data-source-checksums.txt "https://cdn.biip.lt/tiles/vector/sources/address-registry/data-source-checksums.txt"

- name: Check that the files are the exact same
id: comparison
run: |
{
echo 'diff<<EOF'
(diff -u 'published-data-source-checksums.txt' 'output/data-source-checksums.txt' || :)
echo 'EOF'
} >> "${GITHUB_OUTPUT}"
- name: Upload to S3
uses: ./.github/actions/rclone-sync
with:
Expand All @@ -76,18 +88,6 @@ jobs:
if-no-files-found: error
compression-level: 0

- name: Download latest data source hashes
run: wget -O published-data-source-checksums.txt "https://cdn.biip.lt/tiles/vector/sources/address-registry/data-source-checksums.txt"

- name: Check that the files are the exact same
id: comparison
run: |
{
echo 'diff<<EOF'
(diff -u 'published-data-source-checksums.txt' 'output/data-source-checksums.txt' || :)
echo 'EOF'
} >> "${GITHUB_OUTPUT}"
basemap-vector-datasource-grpk:
name: GRPK sync and transform
runs-on: ubuntu-latest
Expand Down Expand Up @@ -128,15 +128,6 @@ jobs:
working-directory: output
run: md5sum grpk-espg-4326.shp.zip >> checksums.txt

- name: Upload to S3
uses: ./.github/actions/rclone-sync
with:
s3-endpoint: ${{ vars.S3_ENDPOINT }}
s3-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
s3-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }}
source-path: output
destination-path: /tiles/vector/sources/grpk

- name: Download latest data source hashes
run: wget -O published-data-source-checksums.txt "https://cdn.biip.lt/tiles/vector/sources/grpk/data-source-checksums.txt"

Expand All @@ -149,6 +140,16 @@ jobs:
echo 'EOF'
} >> "${GITHUB_OUTPUT}"
- name: Upload to S3
uses: ./.github/actions/rclone-sync
with:
s3-endpoint: ${{ vars.S3_ENDPOINT }}
s3-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
s3-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }}
source-path: output
destination-path: /tiles/vector/sources/grpk


basemap-vector-datasource-stvk:
name: STVK sync and transform
runs-on: ubuntu-latest
Expand Down

0 comments on commit 81a92b3

Please sign in to comment.