Commit ee7a87cb authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

grep only first instance, as there are now multiple ids on the page... [skip ci]

parent 40750649
......@@ -19,7 +19,7 @@ build-job:
- python3 sdist bdist_wheel
- apt-get install -y -qq curl
# get the current package id
- 'export ID=$(curl --request GET --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "${CI_PROJECT_ID}/packages" | grep -P "(?<\\d+)" -o )'
- 'export ID=$(curl --request GET --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "${CI_PROJECT_ID}/packages" | grep -P "(?<\\d+)" -o | head -1)'
# remove the package, as we want a new build even if the version number did not change
- 'echo $ID'
- 'curl --request DELETE --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "${CI_PROJECT_ID}/packages/$ID"'
Supports Markdown
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