mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
- Update assets and references for new project - Revert DFU image and CLI motd - Remove NSFW text and flag - Remove credits animation (will be replaced with a setting menu soon) - New EvilPortal example HTML and better error message - Initial standalone naming for asset packs and mainmenu apps - File migration fixes/improvements - Remove hotfix workflow
14 lines
402 B
Bash
14 lines
402 B
Bash
#!/bin/bash
|
|
|
|
export VERSION_TAG="$(python -c '''
|
|
import datetime as dt
|
|
import json
|
|
import os
|
|
with open(os.environ["GITHUB_EVENT_PATH"], "r") as f:
|
|
event = json.load(f)
|
|
version = int(event["pull_request"]["title"].removeprefix("V").removesuffix(" Release")
|
|
date = dt.datetime.now().strftime("%d%m%Y")
|
|
print(f"MNTM-{version:03}_{date}", end="")
|
|
''')"
|
|
echo "VERSION_TAG=${VERSION_TAG}" >> $GITHUB_ENV
|