Skip to content

Commit 0b98e39

Browse files
authored
fix release-go-module, remove redundant package.json files from tools, rename changeset (#1248)
1 parent f76ffbd commit 0b98e39

File tree

8 files changed

+3
-33
lines changed

8 files changed

+3
-33
lines changed

.github/workflows/release-go-module.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
run: |
4444
# Extract the package name and version from the tag
4545
TAG_REF="${GITHUB_REF#refs/tags/}"
46-
PACKAGE_NAME=$(echo "$TAG_REF" | cut -d'/' -f1)
47-
VERSION=$(echo "$TAG_REF" | cut -d'/' -f2)
46+
PACKAGE_NAME="${TAG_REF%/*}"
47+
VERSION="${TAG_REF##*/}"
4848
4949
# Find the latest tag for the same package that is not the current tag
5050
LAST_TAG=$(git describe --abbrev=0 --always --match "$PACKAGE_NAME/v*" --tags $(git rev-list --tags --skip=1 --max-count=1))
@@ -56,7 +56,7 @@ jobs:
5656
fi
5757
5858
# Extract the version part of the last tag
59-
LAST_TAG_VERSION=$(echo "$LAST_TAG" | cut -d'/' -f2)
59+
LAST_TAG_VERSION="${LAST_TAG##*/}"
6060
echo "Last tag version: $LAST_TAG_VERSION"
6161
echo "LAST_TAG_VERSION=${LAST_TAG_VERSION}" >> "$GITHUB_ENV"
6262
File renamed without changes.

tools/ecrimagefetcher/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tools/ghlatestreleasechecker/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tools/ghsecrets/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tools/gotestloghelper/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tools/testlistgenerator/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tools/workflowresultparser/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)