File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,8 +133,6 @@ jobs:
133133 - name : Set VERSION_TAG based on dry_run flag
134134 id : output_version_tag
135135 run : |
136- ls release.config.cjs
137- ls releaseNotesTemplates
138136 if [ "${{ inputs.dry_run }}" = "true" ]; then
139137 # Determine semantic-release command based on branch
140138 if [ "${BRANCH_NAME}" = "${MAIN_BRANCH}" ]; then
@@ -152,12 +150,16 @@ jobs:
152150 GITHUB_REF=refs/heads/${BRANCH_NAME}
153151 # shellcheck disable=SC2034
154152 GITHUB_EVENT_NAME=push
153+ echo "running semantic-release"
155154 npx semantic-release --dry-run --branches "${BRANCH_NAME}" --branch "${BRANCH_NAME}" --tag-format "${TAG_FORMAT}" > semantic-release-output.log
155+ echo "finish semantic-release with exit code $?"
156156 exit_code=0
157157 fi
158158 # Dry run mode: use short git SHA and get next version for summary
159159 VERSION_TAG=$(git rev-parse --short HEAD)
160+ echo "Getting next_version"
160161 NEXT_VERSION=$(grep -i 'The next release version is' semantic-release-output.log | sed -E 's/.* ([[:digit:].]+)$/\1/')
162+ echo "got next version"
161163 # disabling shellcheck as replace does not work
162164 # shellcheck disable=SC2001
163165 NEW_VERSION_TAG=$(echo "$TAG_FORMAT" | sed "s/\${version}/$NEXT_VERSION/")
You can’t perform that action at this time.
0 commit comments