Commit c5017403 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch 'hoverht-master-patch-56245' into 'master'

fix: show changed files after versioning

See merge request ci/templates!82
parents dcc67112 ac5396d2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -7,6 +7,13 @@ python:semantic-release:version:
    # 1. semantic release will bump versions in files -> we want this
    # 2. THEN it will try to commit to git -> we don't want this! -> we let it fail and hide the output
    - env -u GIT_AUTHOR_NAME -u GIT_AUTHOR_EMAIL -u GIT_COMMITTER_NAME -u GIT_COMMITTER_EMAIL semantic-release version &>/dev/null || true
    - CHANGED_FILES=$(git diff --cached --name-status | cut -f2)
    - |
      if [ ! -z "${CHANGED_FILES}" ]; then
        echo -e "[+] The following files had their version changed:\n${CHANGED_FILES}"
      else
        echo "[!] No files were changed during versioning."
      fi
    # 3. all changed files are passed as artifacts to the next stages
  artifacts:
    paths: