Rework workflows and add devbuilds

This commit is contained in:
Willy-JL
2023-07-20 02:00:09 +01:00
parent f951eb5541
commit 49e6554acd
8 changed files with 107 additions and 45 deletions

View File

@@ -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