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 f39b79e commit 2833254
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MJML Bar Chart
[![main](https://github.com/Freezystem/mjml-bar-chart/actions/workflows/test.yml/badge.svg?style=flat)](https://github.com/Freezystem/mjml-bar-chart/actions/workflows/test.yml?query=branch%3Amain)
![example workflow](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/wiki/Freezystem/mjml-bar-chart/coverage-diff-badge.json&logo=jest)
[![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 2833254

Please sign in to comment.