Update actions/upload-artifact to v4
Some checks failed
Cache OSM data / cache (push) Failing after 21m44s

and remove hardcoded alpine runner
This commit is contained in:
Charles P. 2024-07-06 18:41:55 +02:00
parent 835397a6ba
commit 4e5a6bdb53
Signed by untrusted user who does not match committer: aeris
GPG key ID: 1708D5CC4095E76B

View file

@ -10,13 +10,7 @@ on:
jobs: jobs:
cache: cache:
runs-on: docker runs-on: docker
container:
image: 'alpine:latest'
steps: steps:
- name: Install curl
run: |
apk add --no-cache curl
- name: Download OSM data - name: Download OSM data
run: | run: |
curl -L -o osm.pbf \ curl -L -o osm.pbf \
@ -37,13 +31,21 @@ jobs:
output_file: competences-territoriales.geojson output_file: competences-territoriales.geojson
- name: Upload as artifact - name: Upload as artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: competences-territoriales name: competences-territoriales
path: competences-territoriales.geojson
- name: Upload to Forgejo Package Registry - name: Upload to Forgejo Package Registry
run: | run: |
curl --user ${{ secrets.USERNAME }}:${{ secrets.PAT }} \ curl --user ${{ secrets.USERNAME }}:${{ secrets.PAT }} \
--upload-file competences-territoriales.geojson \ --upload-file competences-territoriales.geojson \
--fail \ --fail \
https://forgejo.almanach.altearn.xyz/api/packages/aeris/generic/competences-territoriales-police-france/$(date +%Y-%m-%d)/competences-territoriales.geojson https://forgejo.almanach.altearn.xyz/api/packages/aeris/generic/competences-territoriales-police-france/$(date +%Y-%m-%d)/competences-territoriales.geojson && \
curl --user ${{ secrets.USERNAME }}:${{ secrets.PAT }} \
--request DELETE \
https://forgejo.almanach.altearn.xyz/api/packages/aeris/generic/competences-territoriales-police-france/latest/competences-territoriales.geojson && \
curl --user ${{ secrets.USERNAME }}:${{ secrets.PAT }} \
--request POST \
--fail \
https://forgejo.almanach.altearn.xyz/api/packages/aeris/generic/competences-territoriales-police-france/latest/competences-territoriales.geojson