File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33FILE=agent.codefly.yaml
4- AGENT=$( yq e ' .name' $FILE )
5- VERSION=$( yq e ' .version' $FILE )
4+ AGENT=$( yq -r ' .name' $FILE )
5+ VERSION=$( yq -r ' .version' $FILE )
66
77go mod tidy
88echo Building ${AGENT} :${VERSION}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ if [ ! -f "$YAML_FILE" ]; then
3232 exit 1
3333fi
3434
35- CURRENT_VERSION=$( yq eval ' .version' " $YAML_FILE " )
35+ CURRENT_VERSION=$( yq -rval ' .version' " $YAML_FILE " )
3636
3737git push -f
3838git push origin " v$CURRENT_VERSION " -f
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ if [ ! -f "$YAML_FILE" ]; then
77 exit 1
88fi
99
10- CURRENT_VERSION=$( yq eval ' .version' " $YAML_FILE " )
10+ CURRENT_VERSION=$( yq -rval ' .version' " $YAML_FILE " )
1111NEW_VERSION=" $CURRENT_VERSION "
1212
1313# Update the version in the YAML file (for macOS)
Original file line number Diff line number Diff line change 1313# Argument is patch/minor/major and defaults to patch
1414NEW_VERSION_TYPE=${1:- patch}
1515
16- CURRENT_VERSION=$( yq eval ' .version' " $YAML_FILE " )
16+ CURRENT_VERSION=$( yq -rval ' .version' " $YAML_FILE " )
1717NEW_VERSION=$( semver bump " $NEW_VERSION_TYPE " " $CURRENT_VERSION " )
1818
1919# Update the version in the YAML file (for macOS)
You can’t perform that action at this time.
0 commit comments