Skip to content

Commit

Permalink
fix 'draft release' action part 2 (#9434)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Aug 1, 2023
1 parent b428490 commit 7e15b9f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/actions/draft-release/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

set -euxo pipefail

# Set up a git user
git config user.name "release[bot]"
git config user.email "actions@users.noreply.github.com"
# mark workspace dir as 'safe'
git config --system --add safe.directory '/github/workspace'

# Find last server-YYYY-MM-DD tag
git fetch --unshallow --tags
LAST_TAG=$(git tag | grep server | tail -n 1)

# Set up a git user
git config user.name "release[bot]"
git config user.email "actions@users.noreply.github.com"

# Find the marker in CHANGELOG.md
INSERT_POINT=$(grep -n "^\-\-\-$" CHANGELOG.md | cut -f1 -d:)
INSERT_POINT=$((INSERT_POINT+1))
Expand Down

0 comments on commit 7e15b9f

Please sign in to comment.