Improve release correctness and safety by using GH Environments (#5167)

* Improve release safety by using GH Environments

* Exit early when just returning version
This commit is contained in:
jack1142
2021-06-30 17:24:18 +02:00
committed by GitHub
parent 3b7f9e24b4
commit ec26687e9e
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