From 2316bc2403dda99f8cb52754583f06b9d149d516 Mon Sep 17 00:00:00 2001 From: Christoph Barbian Date: Thu, 6 Jul 2023 23:08:36 +0200 Subject: [PATCH] update workflows: standardize output --- .github/workflows/publish.yaml | 2 +- .github/workflows/release.yaml | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 302df12..3a1e902 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -87,7 +87,7 @@ jobs: fi head -n $boilerplate_linecount $f > $tempdir/out if ! diff -q $tempdir/out $boilerplate >/dev/null; then - >&1 echo "Error: incorrect license header: $f." + >&1 echo "Error: incorrect license header found in $f." errors=$((errors+1)) fi rm -f $tempdir/out diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b503e3e..eae3856 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -98,10 +98,9 @@ jobs: fi echo "Target version: $version" - echo "Target tag: $tag." + echo "Target tag: $tag" echo "version=$version" >> $GITHUB_OUTPUT echo "tag=$tag" >> $GITHUB_OUTPUT - echo - name: Update chart version and appVersion run: | @@ -110,12 +109,12 @@ jobs: target_chart_version=${{ steps.get_target_release.outputs.version }} target_app_version=${{ steps.get_target_release.outputs.tag }} - echo "Updating $CHART_DIRECTORY/Chart.yaml from $current_chart_version to $target_chart_version." + echo "Updating $CHART_DIRECTORY/Chart.yaml from $current_chart_version to $target_chart_version ..." perl -pi -e "s#^version:.*#version: $target_chart_version#g" $CHART_DIRECTORY/Chart.yaml perl -pi -e "s#^appVersion:.*#appVersion: $target_app_version#g" $CHART_DIRECTORY/Chart.yaml if [ -z "$(git status --porcelain)" ]; then - echo "Nothing has changed; skipping commit/push." + echo "Nothing has changed; skipping commit/push ..." else git config user.name "${{ vars.WORKFLOW_USER_NAME }}" git config user.email "${{ vars.WORKFLOW_USER_EMAIL }}" @@ -128,7 +127,7 @@ jobs: id: get_target_commit run: | sha=$(git rev-parse HEAD) - echo "Target commit: $sha." + echo "Target commit: $sha" echo "sha=$sha" >> $GITHUB_OUTPUT - name: Create Release