Skip to content

Commit

Permalink
update workflows: standardize output
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarbian-sap committed Jul 6, 2023
1 parent cc9a1a9 commit 2316bc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}"
Expand All @@ -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
Expand Down

0 comments on commit 2316bc2

Please sign in to comment.