1
0
Fork 0
mirror of synced 2024-11-24 11:05: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 GIT_STRATEGY: none
script: script:
- apk add --no-cache --upgrade py3-pip - 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? - 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 - grep "successful" /tmp/cz_check # ugly hack to workaround the above issue
rules: rules:
@ -24,7 +26,9 @@ tag-to-release:
GIT_STRATEGY: none GIT_STRATEGY: none
script: script:
- apk add --no-cache --upgrade git py3-pip - 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" - git clone "$CI_PROJECT_URL.git"
- cd "$CI_PROJECT_NAME" - cd "$CI_PROJECT_NAME"
- CHANGELOG=$(cz changelog "$CI_COMMIT_TAG" --dry-run | sed /^Invalid/d) - CHANGELOG=$(cz changelog "$CI_COMMIT_TAG" --dry-run | sed /^Invalid/d)