forked from orange-cloudfoundry/k3s-boshrelease
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create-final-bosh-release-on-commits.yml: skip gh-release update when…
… noop skip gh-release update when no bosh release was recreated. - Otherwise, the actions fails to properly regenerate the release notes - and this saves resources
- Loading branch information
1 parent
4318d30
commit 9ddca9b
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,6 +160,7 @@ jobs: | |
echo "No sha1 found in diff in ${RELEASE_FILE_NAME}. No blob were modified. Skipping the git push" | ||
ls -al ${RELEASE_FILE_NAME} | ||
cat ${RELEASE_FILE_NAME} | ||
NEED_GITHUB_RELEASE="false" | ||
else | ||
echo "pushing changes to git repository" | ||
|
@@ -174,17 +175,20 @@ jobs: | |
# Push the tag | ||
git push ${remote_repo} ${version} --force | ||
NEED_GITHUB_RELEASE="true" | ||
fi | ||
# make asset readable outside docker image | ||
chmod 644 ${name}-${version}.tgz | ||
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files | ||
echo "file=${name}-${version}.tgz" >> $GITHUB_OUTPUT | ||
echo "version=${version}" >> $GITHUB_OUTPUT | ||
echo "file=${name}-${version}.tgz" >> $GITHUB_OUTPUT | ||
echo "version=${version}" >> $GITHUB_OUTPUT | ||
echo "need_gh_release=${NEED_GITHUB_RELEASE}" >> $GITHUB_OUTPUT | ||
# see https://github.com/ncipollo/release-action | ||
- name: create github release | ||
id: create-github-release | ||
if: {{ steps.create-bosh-release.outputs.need_gh_release == 'true' }} | ||
uses: ncipollo/[email protected] | ||
with: | ||
tag: ${{ steps.create-bosh-release.outputs.version }} | ||
|