Skip to content

Commit

Permalink
Use new style
Browse files Browse the repository at this point in the history
  • Loading branch information
taliesins committed Dec 27, 2023
1 parent be57ac1 commit 0e99658
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
prerelease_version="$(svu prerelease --tag-mode all-branches --strip-prefix --pre-release prerelease)"
release_version="$(svu next --tag-mode all-branches --strip-prefix)"
echo ::set-output name=CURRENT_VERSION::${current_version}
echo ::set-output name=PRERELEASE_VERSION::${prerelease_version}
echo ::set-output name=RELEASE_VERSION::${release_version}
echo "CURRENT_VERSION=${current_version}" >> $GITHUB_OUTPUT
echo "PRERELEASE_VERSION=${prerelease_version}" >> $GITHUB_OUTPUT
echo "RELEASE_VERSION=${release_version}" >> $GITHUB_OUTPUT
echo "current version: ${current_version}"
echo "prerelease version: ${prerelease_version}"
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ jobs:
current_version="$(svu current --tag-mode current-branch --strip-prefix)"
prerelease_version="$(svu prerelease --tag-mode all-branches --strip-prefix --pre-release prerelease)"
release_version="$(svu next --tag-mode all-branches --strip-prefix)"
echo ::set-output name=CURRENT_VERSION::${current_version}
echo ::set-output name=PRERELEASE_VERSION::${prerelease_version}
echo ::set-output name=RELEASE_VERSION::${release_version}
echo "CURRENT_VERSION=${current_version}" >> $GITHUB_OUTPUT
echo "PRERELEASE_VERSION=${prerelease_version}" >> $GITHUB_OUTPUT
echo "RELEASE_VERSION=${release_version}" >> $GITHUB_OUTPUT
echo "current version: ${current_version}"
echo "prerelease version: ${prerelease_version}"
Expand Down Expand Up @@ -338,7 +338,9 @@ jobs:
*)
ARTIFACT="${GITHUB_REF}";;
esac
echo "::set-output name=ARTIFACT::$ARTIFACT-$(date -u +'%Y-%m-%dT%H-%M')"
ARTIFACT="${ARTIFACT}-$(date -u +'%Y-%m-%dT%H-%M')"
echo "ARTIFACT=${ARTIFACT}" >> $GITHUB_OUTPUT
- name: upload snapshot artifact
uses: actions/upload-artifact@v3
if: "!(startsWith(github.ref, 'refs/tags/v'))"
Expand Down

0 comments on commit 0e99658

Please sign in to comment.