Skip to content

Commit 2da3372

Browse files
committed
🧱 Update Actions releaser job
1 parent 8354bf0 commit 2da3372

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/actions-releaser.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
with:
15-
fetch-depth: 0
15+
fetch-depth: 0
1616
- run: |
1717
./changelog.sh > changelog.md
18-
gh release create ${GITHUB_REF##*/} -F changelog.md
18+
gh release create ${GITHUB_REF##*/} -F changelog.md
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

changelog.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ for current_tag in $(git tag --sort=-creatordate)
44
do
55

66
if [ "$previous_tag" != 0 ];then
7-
tag_date=$(git log -1 --pretty=format:'%ad' --date=short ${previous_tag})
87
printf "## Changelog\n"
98
git log ${current_tag}...${previous_tag} --pretty=format:'* %h %s' --reverse | grep -v Merge
10-
printf "\n\n"
9+
printf "\n"
10+
break
1111
fi
1212
previous_tag=${current_tag}
13-
done
13+
done

0 commit comments

Comments
 (0)