From 32d76761bc631fa9051de6ae3817bac521dbc14c Mon Sep 17 00:00:00 2001 From: Younes El Ouarti Date: Sat, 12 Oct 2024 23:29:01 +0200 Subject: [PATCH] v++ and change git add and only on master --- .github/workflows/jacoco-badge.yml | 10 +++++++--- CHANGELOG.md | 6 ++++++ gradle.properties | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/jacoco-badge.yml b/.github/workflows/jacoco-badge.yml index 3ae8fe4..eba1a5e 100644 --- a/.github/workflows/jacoco-badge.yml +++ b/.github/workflows/jacoco-badge.yml @@ -3,7 +3,11 @@ name: Generate JaCoCo Coverage Badge on: push: branches: - - '**' + - master + pull_request: + branches: + - master + permissions: contents: write @@ -31,7 +35,7 @@ jobs: badges-directory: .github/badges generate-coverage-badge: true coverage-badge-filename: jacoco.svg - generate-branches-badge: true + generate-branches-badge: false branches-badge-filename: branches.svg generate-coverage-endpoint: false coverage-endpoint-filename: jacoco.json @@ -55,7 +59,7 @@ jobs: run: | git config --local user.name "github-actions[bot]" git config --local user.email "github-actions[bot]@users.noreply.github.com" - git add . + git add .github/badges/* git commit -m "Update JaCoCo coverage badge [ci skip]" || echo "No changes to commit" git push env: diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f5f118..513e13d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.9.0] + +### Added + +* Added code coverage badge + ## [0.8.0] ### Added diff --git a/gradle.properties b/gradle.properties index 8957a6f..cdbcea4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group=de.kamillionlabs name=hateoflux -version=0.8.0 \ No newline at end of file +version=0.9.0 \ No newline at end of file