Skip to content

Commit 223cf0a

Browse files
author
Suguru Hirahara
committed
Update autotag.yml
Signed-off-by: Suguru Hirahara <[email protected]>
1 parent 0c7df6b commit 223cf0a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/autotag.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ jobs:
3737
id: find_renovate_commit
3838
run: |
3939
git log -n 20 --pretty=format:'%H|%an|%s' | while IFS='|' read -r commit author subject; do
40-
if [[ "$author" == "renovate[bot]" && "$subject" == *"Docker tag to "* ]]; then
41-
VERSION_PART="${subject#*Docker tag to }"
42-
VERSION="$(echo "$VERSION_PART" | xargs)"
40+
if [[ "$author" == "renovate[bot]" && "${subject,,}" == *"docker tag to "* ]]; then
41+
VERSION=$(echo "$subject" | sed -E 's/.*[Dd]ocker tag to (.+)$/\1/')
4342
echo "new_version=$VERSION" >> $GITHUB_OUTPUT
4443
echo "commit_hash=$commit" >> $GITHUB_OUTPUT
4544
echo "Found Renovate commit: $commit with version: $VERSION"

0 commit comments

Comments
 (0)