Skip to content

Commit

Permalink
fix pre release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Freezystem committed Dec 7, 2023
1 parent 2d35a4a commit 2ea8b42
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ jobs:
badge-threshold-green: 90
badge-threshold-orange: 80
- name: Generate Changelog
run: git log --oneline $(git describe --tags --abbrev=0)..HEAD >> CHANGELOG.txt
if: ${{ startsWith(github.ref, 'refs/tags/') }}
- name: Release
run: |
echo "# What's new ?" > CHANGELOG.md
git log --pretty='- %h %s by %aN' --no-merges $(git describe --tags --abbrev=0 @^)..@ >> CHANGELOG.md
- name: Pre Release
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
body_path: CHANGELOG.txt
body_path: CHANGELOG.md
draft: true
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ index.html
build
node_modules
.parcel-cache
coverage
coverage
CHANGELOG.md
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# MJML Bar Chart
[![Workflow](https://img.shields.io/github/actions/workflow/status/Freezystem/mjml-bar-chart/test.yml?logo=github)](https://github.com/Freezystem/mjml-bar-chart/actions/workflows/test.yml?query=branch%3Amain)
![Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/wiki/Freezystem/mjml-bar-chart/coverage-diff-badge.json&logo=jest)

## Getting started

Expand Down

0 comments on commit 2ea8b42

Please sign in to comment.