[3.4] Improve release correctness and safety by using GH Environments (#5167) (#5249)

* Improve release safety by using GH Environments

* Exit early when just returning version
(cherry picked from commit ec26687e9e)

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
Red-GitHubBot
2021-09-08 20:11:13 +02:00
committed by GitHub
parent a3f61fed7c
commit e08909dba6
2 changed files with 57 additions and 1 deletions

View File

@@ -6,6 +6,11 @@ from typing import Match
import redbot
if int(os.environ.get("JUST_RETURN_VERSION", 0)):
print(f"::set-output name=version::{redbot.__version__}")
sys.exit(0)
version_info = None