mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Rework workflows and add devbuilds
This commit is contained in:
9
.github/workflow_data/version.sh
vendored
9
.github/workflow_data/version.sh
vendored
@@ -1,4 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
export VERSION_TAG="$(python -c 'import fbt_options; print(fbt_options.DIST_SUFFIX)')"
|
||||
export VERSION_TAG="$(python -c '''
|
||||
import datetime as dt
|
||||
with open(os.environ["GITHUB_EVENT_PATH"], "r") as f:
|
||||
event = json.load(f)
|
||||
version = int(event["pull_request"]["title"].removeprefix("V").removesuffix(" Release").removesuffix(" Hotfix"))
|
||||
date = dt.datetime.now().strftime("%d%m%Y")
|
||||
print(f"XFW-{version:04}_{date}", end="")
|
||||
''')"
|
||||
echo "VERSION_TAG=${VERSION_TAG}" >> $GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user