From ffa46275f90998a2e13b92f8c0ef0dce19ce0cd4 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Thu, 13 Jul 2023 17:06:38 +0200 Subject: [PATCH] Render a depecation message in job summary. --- twine-upload.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/twine-upload.sh b/twine-upload.sh index bdff0b3..51456fd 100755 --- a/twine-upload.sh +++ b/twine-upload.sh @@ -2,6 +2,29 @@ set -Eeuo pipefail +echo \ + '# UNSUPPORTED GITHUB ACTION VERSION' \ + '\n\n' \ + You are using `pypa/gh-action-pypi-publish@master`. \ + The `master` branch of this project has been sunset and will not \ + receive any updates, not even security bug fixes. Please, make \ + sure to use a supported version. If you want to pin to v1 major \ + version, use `pypa/gh-action-pypi-publish@release/v1`. If you \ + feel adventurous, you may opt to use use \ + `pypa/gh-action-pypi-publish@unstable/v1` instead. A more \ + general recommendation is to pin to exact tags or commit shas. \ + '\n\n' \ + '\n\n' \ + '### Oh, and while you are here — #StandWithUkraine' \ + '\n\n' \ + '[![SWUbanner]][SWUdocs]' \ + '\n\n' \ + '[SWUbanner]:' \ + 'https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg' \ + '\n\n' \ + '[SWUdocs]:' \ + 'https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md' \ + >> "${GITHUB_STEP_SUMMARY}" echo \ ::warning file='# >>' PyPA publish to PyPI GHA'%3A' \ UNSUPPORTED GITHUB ACTION VERSION \