mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
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:
5
.github/workflows/scripts/bump_version.py
vendored
5
.github/workflows/scripts/bump_version.py
vendored
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user