From 3cc88a074350f734bab007fd70c25165cb575ec5 Mon Sep 17 00:00:00 2001 From: axunonb Date: Thu, 4 Jul 2024 14:29:29 +0200 Subject: [PATCH] chore: Remove disallowed characters in commit message (#430) --- .github/workflows/CheckWikiUpdates.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CheckWikiUpdates.yml b/.github/workflows/CheckWikiUpdates.yml index c976e0a4..9022ca15 100644 --- a/.github/workflows/CheckWikiUpdates.yml +++ b/.github/workflows/CheckWikiUpdates.yml @@ -24,7 +24,7 @@ jobs: DATE=$(git log -1 --format=%cd --date=iso) FORMATTED_DATE=$(date -d"$DATE" +'%Y-%m-%d %H:%M:%S') echo "updatedOn=$FORMATTED_DATE" >> $GITHUB_ENV - echo "commitMessage=$(git log -1 --pretty=%B)" | sed 's/%/%25/g' | sed 's/\r/%0D/g' | sed 's/\n/%0A/g' | sed 's/:/%3A/g' | sed 's/ /%20/g' >> $GITHUB_ENV + printf "commitMessage='%s'" "$(git log -1 --pretty=%B | tr "'" "_")" >> $GITHUB_ENV echo "hash=$(git rev-parse HEAD)" >> $GITHUB_ENV echo "commitCount=$(git rev-list --count --since='24 hours ago' HEAD)" >> $GITHUB_ENV - name: Print variables