File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,6 +123,8 @@ git checkout -b "$BRANCH"
123123echo " Updating VERSION to $VERSION ..."
124124echo " $VERSION " > VERSION
125125
126+ PREV_CLI_VERSION=$( grep -E ' ^ default: v[0-9]+\.[0-9]+\.[0-9]+$' action.yml | sed -E ' s/.*default: v//' )
127+
126128echo " Updating cli_version default in action.yml to v$CLI_VERSION ..."
127129sed -i.bak -E " s/^( default: v)[0-9]+\.[0-9]+\.[0-9]+\$ /\1$CLI_VERSION /" action.yml
128130sed -i.bak -E " s/(Linear Release CLI version to install \(e\.g\., \" v)[0-9]+\.[0-9]+\.[0-9]+(\" \))/\1$CLI_VERSION \2/" action.yml
@@ -142,8 +144,10 @@ git push -u origin "$BRANCH"
142144echo " Creating pull request..."
143145if [ " $CLI_VERSION " = " $VERSION " ]; then
144146 PR_BODY=" Bumps the action and default CLI version to v$VERSION ."
145- else
147+ elif [ " $CLI_VERSION " = " $PREV_CLI_VERSION " ] ; then
146148 PR_BODY=" Bumps the action to v$VERSION (default CLI version stays at v$CLI_VERSION )."
149+ else
150+ PR_BODY=" Bumps the action to v$VERSION (default CLI version bumped to v$CLI_VERSION )."
147151fi
148152PR_URL=$( gh pr create \
149153 --title " Release v$VERSION " \
You can’t perform that action at this time.
0 commit comments