Update actions/upload-artifact to v4
Some checks failed
Cache OSM data / cache (push) Failing after 21m32s
Some checks failed
Cache OSM data / cache (push) Failing after 21m32s
and remove hardcoded alpine runner
This commit is contained in:
parent
835397a6ba
commit
f72f6ce091
1 changed files with 11 additions and 8 deletions
|
@ -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,22 @@ 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 \
|
||||||
|
--fail \
|
||||||
|
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
|
Loading…
Reference in a new issue