We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c7df6b commit 223cf0aCopy full SHA for 223cf0a
.github/workflows/autotag.yml
@@ -37,9 +37,8 @@ jobs:
37
id: find_renovate_commit
38
run: |
39
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)"
+ if [[ "$author" == "renovate[bot]" && "${subject,,}" == *"docker tag to "* ]]; then
+ VERSION=$(echo "$subject" | sed -E 's/.*[Dd]ocker tag to (.+)$/\1/')
43
echo "new_version=$VERSION" >> $GITHUB_OUTPUT
44
echo "commit_hash=$commit" >> $GITHUB_OUTPUT
45
echo "Found Renovate commit: $commit with version: $VERSION"
0 commit comments