Skip to content

Commit ac1d5b6

Browse files
committed
Replace set-ouput with environment files
GitHub Actions has deprecated the use of the `set-output` command [[1]], we should use environment files instead. [1]: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
1 parent 467f590 commit ac1d5b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
id: gem_version
2525
run: |
2626
gem_version=$(ruby -r rubygems -e "puts Gem::Specification::load('govuk_tech_docs.gemspec').version")
27-
echo "::set-output name=gem_version::$gem_version"
27+
echo "gem_version=$gem_version" >> "$GITHUB_OUTPUT"
2828
2929
if git fetch origin "refs/tags/v$gem_version" >/dev/null 2>&1
3030
then
3131
echo "Tag 'v$gem_version' already exists"
32-
echo "::set-output name=new_version::false"
32+
echo "new_version=false" >> "$GITHUB_OUTPUT"
3333
else
34-
echo "::set-output name=new_version::true"
34+
echo "new_version=true" >> "$GITHUB_OUTPUT"
3535
fi
3636
3737
deploy:

0 commit comments

Comments
 (0)