diff --git a/.github/workflows/create-final-bosh-release-on-commits.yml b/.github/workflows/create-final-bosh-release-on-commits.yml index a1fe5034..1e565b42 100644 --- a/.github/workflows/create-final-bosh-release-on-commits.yml +++ b/.github/workflows/create-final-bosh-release-on-commits.yml @@ -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/release-action@v1.13.0 with: tag: ${{ steps.create-bosh-release.outputs.version }}