Commit f8333826 authored by Bruno Duyé's avatar Bruno Duyé

update gitlab-ci (to keep artifacts and do not commit deletions !)

parent 90313e7d
Pipeline #143878 passed with stage
in 1 minute and 44 seconds
......@@ -47,17 +47,24 @@ job:
time git add -A
time git commit -m "New download" --quiet || true
time git push
[ -f errors.json ] && mv errors.json .. || true
fi
- |
if [ "${JOB}" == "convert" ]; then
time git clone --quiet --depth=1 https://git.nomics.world/dbnomics-source-data/${PROVIDER_SLUG}-source-data.git
time git clone --quiet --depth=1 git@git.nomics.world:dbnomics-json-data/${PROVIDER_SLUG}-json-data.git
cd ${PROVIDER_SLUG}-json-data
# If not on master, checkout corresponding branch on json-data
git checkout -B ${CI_COMMIT_REF_NAME}
time find -not -path "./.git/*" -not -name ".git" -delete
cd ..
time python3 convert.py ${PROVIDER_SLUG}-source-data ${PROVIDER_SLUG}-json-data
cd ${PROVIDER_SLUG}-json-data
time git add -A
time git commit -m "New conversion" --quiet || true
time git push
fi
\ No newline at end of file
time git add --ignore-removal .
time git commit -m "New conversion..." -m "from source-data $(git -C ../${PROVIDER_SLUG}-source-data rev-parse --short HEAD)" --quiet || true
time git push origin ${CI_COMMIT_REF_NAME}
[ -f errors.json ] && mv errors.json .. || true
fi
artifacts:
paths:
- errors.json
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment