Skip to content

Commit

Permalink
chore: update code for setting output
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed May 1, 2023
1 parent 5e184e6 commit cc4b0b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions container/usr/local/bin/prepare-release
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ if [ -z "${INCREMENT:-}" ] && [ -z "${VERSION:-}" ]; then
fi

if [ -n "${VERSION:-}" ]; then
echo "::set-output name=increment::${INCREMENT:-pre}"
echo "increment=${INCREMENT:-pre}" >> $GITHUB_OUTPUT
replace "$(version_file)" "$(current-version)" "${VERSION}"
echo "Setting version to ${VERSION}"
else
echo "::set-output name=increment::${INCREMENT}"
echo "increment=${INCREMENT}" >> $GITHUB_OUTPUT

echo "Performing ${INCREMENT} release"
bump "${INCREMENT}"
Expand Down
6 changes: 3 additions & 3 deletions container/usr/local/bin/set-outputs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ fi

gem_name=$(ruby -e "puts eval(File.read(Dir['*.gemspec'].first), binding, Dir['*.gemspec'].first).name ")

echo "::set-output name=version::$(current-version)"
echo "::set-output name=tag::$(current-tag)"
echo "::set-output name=gem_name::${gem_name}"
echo "version=$(current-version)" >> $GITHUB_OUTPUT
echo "tag=$(current-tag)" >> $GITHUB_OUTPUT
echo "gem_name=${gem_name}" >> $GITHUB_OUTPUT

0 comments on commit cc4b0b5

Please sign in to comment.