1
0
Fork 0
mirror of synced 2024-11-21 17:45:36 -05:00

ci: fix pip refusing to install any package

Workaround in place as per https://gitlab.com/garuda-linux/themes-and-settings/settings/garuda-sway-settings/-/issues/2#note_1689180378
This commit is contained in:
BluishHumility 2023-12-11 14:04:19 -05:00
parent f0d5ef4331
commit 45fdc8db93

View file

@ -9,7 +9,9 @@ check-commitizen:
GIT_STRATEGY: none
script:
- apk add --no-cache --upgrade py3-pip
- pip install -U commitizen
# Pass --break-system-packages since since this containers sole purpose is
# running 2 applications. If we get to advance this, implement a proper venv
- pip install --break-system-packages commitizen
- cz check --message "$CI_COMMIT_MESSAGE" >/tmp/cz_check || true # why does it return 1 if its actually 0?
- grep "successful" /tmp/cz_check # ugly hack to workaround the above issue
rules:
@ -24,7 +26,9 @@ tag-to-release:
GIT_STRATEGY: none
script:
- apk add --no-cache --upgrade git py3-pip
- pip install -U commitizen
# Pass --break-system-packages since since this containers sole purpose is
# running 2 applications. If we get to advance this, implement a proper venv
- pip install --break-system-packages -U commitizen
- git clone "$CI_PROJECT_URL.git"
- cd "$CI_PROJECT_NAME"
- CHANGELOG=$(cz changelog "$CI_COMMIT_TAG" --dry-run | sed /^Invalid/d)