mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
* 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:
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