Skip to content
Snippets Groups Projects
Commit e3129f07 authored by Philipp Stadler's avatar Philipp Stadler
Browse files

fix: use curl with --fail to detect non-2xx

parent e2523d01
Branches
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ build:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_TAG
script:
- curl https://gitlab.phaidra.org/kartenaale/card-templates/-/jobs/104428/artifacts/raw/card-templates-1.0.2.tar.gz | tar -xz
- curl --fail https://gitlab.phaidra.org/kartenaale/card-templates/-/jobs/104428/artifacts/raw/card-templates-1.0.2.tar.gz | tar -xz
- export_apkgs -c content -t templates -o .
- echo "ARTIFACTS_URL=https://gitlab.phaidra.org/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/browse" > build.env
artifacts:
......@@ -34,7 +34,7 @@ fetch-configs:
# we don't need anything in node_modules or python, so don't fetch the cache
cache: []
script:
- 'curl -H "PRIVATE-TOKEN: $COMMON_CI_API_TOKEN" "https://gitlab.phaidra.org/api/v4/projects/1469/repository/files/cliff.toml/raw/?ref=main" > cliff.toml'
- 'curl --fail -H "PRIVATE-TOKEN: $COMMON_CI_API_TOKEN" "https://gitlab.phaidra.org/api/v4/projects/1469/repository/files/cliff.toml/raw/?ref=main" > cliff.toml'
artifacts:
paths:
- cliff.toml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment