Improve workflows

This commit is contained in:
Thibault Ayanides 2021-01-15 08:18:07 +01:00 committed by Thibault Serti
parent 3f20f99e50
commit 44e7ea7c63

View File

@ -29,8 +29,9 @@ jobs:
# 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