From 44e7ea7c63d9c1453445aad26b708f395c953367 Mon Sep 17 00:00:00 2001 From: Thibault Ayanides Date: Fri, 15 Jan 2021 08:18:07 +0100 Subject: [PATCH] Improve workflows --- .github/workflows/tagged-release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tagged-release.yml b/.github/workflows/tagged-release.yml index df1f10f..47e7e8d 100644 --- a/.github/workflows/tagged-release.yml +++ b/.github/workflows/tagged-release.yml @@ -26,11 +26,12 @@ jobs: sudo apt-get install -y build-essential devscripts debhelper sudo debuild -us -uc find ../ -name "*.deb" -exec mv {} cis-hardening.deb \; - #GENERATE CHANGELOG CORRESPONDING TO ENTRY IN DEBIAN/CHANGELOG + # GENERATE CHANGELOG CORRESPONDING TO ENTRY IN DEBIAN/CHANGELOG - name: Generate changelog run: sed -n -e "/cis-hardening ($(echo ${{ steps.vars.outputs.tag }} | tr -d 'v'))/,/ -- / p" debian/changelog | tail -n +3 | head -n -2 > changelog.md - - name: debug - run: cat changelog.md + # IF THERE IS A NEW TAG BUT NO CORRESPONDING ENTRY IN DEBIAN/CHANGELOG + - name: Abort if changelog is empty + run: '[ -s changelog.md ] || exit 0' # CREATE RELEASE - name: Create Release id: create_release