From c28aafaf7eb739d9793696ab101ceb3e68b5fd18 Mon Sep 17 00:00:00 2001 From: Jean-Thierry BONHOMME Date: Sun, 15 Jan 2023 17:42:56 +0100 Subject: [PATCH] fix: readme displaying badge --- .github/workflows/badge.yml | 10 ---------- README.md | 6 +++--- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/badge.yml b/.github/workflows/badge.yml index 5ba97f4..43c0594 100644 --- a/.github/workflows/badge.yml +++ b/.github/workflows/badge.yml @@ -20,16 +20,6 @@ jobs: - name: Checkout master uses: actions/checkout@v3 - - name: Extract branch name - id: extract_branch - shell: bash - run: | - echo github.ref_name ${{ github.head_ref }} - echo GITHUB_REF ${GITHUB_REF} - echo GITHUB_REF##*/ ${GITHUB_REF##*/} - echo "branch=${GITHUB_REF#refs/heads/}" - echo "branch=${GITHUB_REF#refs/heads/}" >> "${GITHUB_OUTPUT}" - - name: Make tests id: make_test run: | diff --git a/README.md b/README.md index 76c7674..4ed0ec7 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Clean Architecture template for Golang services [![Go Report Card](https://goreportcard.com/badge/github.com/jtbonhomme/go-template)](https://goreportcard.com/report/github.com/jtbonhomme/go-template) [![License](https://img.shields.io/github/license/jtbonhomme/go-template.svg)](https://github.com/jtbonhomme/go-template/blob/master/LICENSE) [![Release](https://img.shields.io/github/v/release/jtbonhomme/go-template.svg)](https://github.com/jtbonhomme/go-template/releases/) -![Code coverage](.badges/test-badge.svg) +![Code coverage](./.badges/coverage-badge.svg?raw=true) [![Tests](https://github.com/jtbonhomme/go-template/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/jtbonhomme/go-template/actions/workflows/tests.yml) ## Overview @@ -73,8 +73,8 @@ Dummy demonstration http server. ### To Do -* [x] Automatic tag + GH release +* [X] Automatic tag + GH release * [ ] Fix auto tag (no actual analyse of PRs) * [ ] Fix changelog (fix are uncategorized) -* [ ] Create and commit SVG badge in master branch +* [X] Create and commit SVG badge in pushed branch * [ ] Pass tests coverage as artifact between test and badge