mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-07 21:40:30 +00:00
Use -u instead of --utc to compatibility with BSD's date command
This commit is contained in:
@@ -42,7 +42,7 @@ fi
|
|||||||
tags=$(git --no-pager tag)
|
tags=$(git --no-pager tag)
|
||||||
if [[ -n "${tags}" ]]; then
|
if [[ -n "${tags}" ]]; then
|
||||||
# Make sure the same release does not exist in CHANGELOG.md.
|
# Make sure the same release does not exist in CHANGELOG.md.
|
||||||
release_date=$(date --utc '+%Y-%m-%d')
|
release_date=$(date -u '+%Y-%m-%d')
|
||||||
if grep -Eq "^## \\[${version//./\\.}\\] - ${release_date}$" CHANGELOG.md; then
|
if grep -Eq "^## \\[${version//./\\.}\\] - ${release_date}$" CHANGELOG.md; then
|
||||||
bail "release ${version} already exist in CHANGELOG.md"
|
bail "release ${version} already exist in CHANGELOG.md"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user