Skip to content

Commit

Permalink
Merge pull request #4 from geoadmin/feat-PB-344-update-workflow
Browse files Browse the repository at this point in the history
PB-344: Fix deprecated output
  • Loading branch information
benschs authored Apr 29, 2024
2 parents d2bb8d6 + 0b8d5c0 commit 8f45dd3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ commit=$(git rev-parse HEAD)
if [[ "${tag_commit}" == "${commit}" ]]
then
echo "No new commits since previous tag. Skipping..."
echo "::set-output name=tag::${tag}"
echo "tag=${tag}" >> "${GITHUB_OUTPUT}"
exit 0
fi

Expand All @@ -123,16 +123,16 @@ case "${log}" in
*#patch* ) new=$(semver -i patch "${tag}"); part="patch";;
*#none* )
echo "Default bump was set to none. Skipping..."
echo "::set-output name=new_tag::${tag}"
echo "::set-output name=tag::${tag}"
echo "new_tag=${tag}" >> "${GITHUB_OUTPUT}"
echo "tag=${tag}" >> "${GITHUB_OUTPUT}"
exit 0
;;
* )
if [[ "${default_semvar_bump}" == "none" ]]
then
echo "Default bump was set to none. Skipping..."
echo "::set-output name=new_tag::${tag}"
echo "::set-output name=tag::${tag}"
echo "new_tag=${tag}" >> "${GITHUB_OUTPUT}"
echo "tag=${tag}" >> "${GITHUB_OUTPUT}"
exit 0
else
new=$(semver -i "${default_semvar_bump}" "${tag}"); part=${default_semvar_bump}
Expand Down Expand Up @@ -173,17 +173,17 @@ else
fi

# set outputs
echo "::set-output name=new_tag::${new}"
echo "::set-output name=part::${part}"
echo "new_tag=${new}" >> "${GITHUB_OUTPUT}"
echo "part=${part}" >> "${GITHUB_OUTPUT}"

# use dry run to determine the next tag
if ${dryrun}
then
echo "::set-output name=tag::${tag}"
echo "tag=${tag}" >> "${GITHUB_OUTPUT}"
exit 0
fi

echo "::set-output name=tag::${new}"
echo "tag=${new}" >> "${GITHUB_OUTPUT}"

# create local git tag
git tag "${new}"
Expand Down

0 comments on commit 8f45dd3

Please sign in to comment.