Skip to content

update VERSION during a release #400

@plastikfan

Description

@plastikfan

the .VERSION file change not being committed during a release, see this:

      if ! git add ./VERSION; then
        # echo "!!! Aborted! Failed to git add VERSION file" #error/item
        gum style "$(_e "!!! Aborted! Failed to git add $(_i 'VERSION') file")"

        return 1
      fi

      if [ -e ./VERSION-PATH ]; then
        version_path=$(more ./VERSION-PATH)
        echo "$raw_version" > "$version_path"
        
        if ! git add "$version_path"; then
          # echo "!!! ⛔ Aborted! Failed to git add VERSION-PATH file ($version_path)" #error/item
          gum style "!!! $(_e 'Aborted! Failed to git add VERSION-PATH file') ($("_i $version_path"))"

          return 1
        fi
      fi

we only commit VERSION-PATH, but we don't commit .VERSION.

Metadata

Metadata

Assignees

Labels

choreNon source related, infrasture change

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions