mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
✨ Upload updates file as well
This commit is contained in:
committed by
Nikhil Badyal
parent
7444ef9029
commit
0fe165a09e
@@ -137,7 +137,7 @@ jobs:
|
|||||||
- name: Upload Build Artifact
|
- name: Upload Build Artifact
|
||||||
uses: ncipollo/release-action@main
|
uses: ncipollo/release-action@main
|
||||||
with:
|
with:
|
||||||
artifacts: "*-output.apk"
|
artifacts: "*-output.apk,updates.json,changelog.json,changelog.md"
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tag: Build-${{ steps.get-date.outputs.date }}
|
tag: Build-${{ steps.get-date.outputs.date }}
|
||||||
artifactErrorsFailBuild: true
|
artifactErrorsFailBuild: true
|
||||||
|
|||||||
@@ -118,6 +118,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Built-APKs
|
name: Built-APKs
|
||||||
path: |
|
path: |
|
||||||
|
changelog.md
|
||||||
|
changelog.json
|
||||||
|
updates.json
|
||||||
apks/*-output.apk
|
apks/*-output.apk
|
||||||
apks/VancedMicroG.apk"
|
apks/VancedMicroG.apk"
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|||||||
+2
-2
@@ -80,8 +80,8 @@ class APP(object):
|
|||||||
a string that represents the output file name for an APK file.
|
a string that represents the output file name for an APK file.
|
||||||
"""
|
"""
|
||||||
current_date = datetime.now(timezone(time_zone))
|
current_date = datetime.now(timezone(time_zone))
|
||||||
formatted_date = current_date.strftime("%Y%b%d_%I%M%p").upper()
|
formatted_date = current_date.strftime("%Y%b%d.%I%M%p").upper()
|
||||||
return f"Re-{self.app_name}-app-version{slugify(self.app_version)}-{formatted_date}-patch-version-{slugify(self.resource["patches"]["version"])}output.apk"
|
return f"Re{self.app_name}-Version{slugify(self.app_version)}-PatchVersion{slugify(self.resource["patches"]["version"])}-{formatted_date}-output.apk" # noqa: E501
|
||||||
|
|
||||||
def __str__(self: "APP") -> str:
|
def __str__(self: "APP") -> str:
|
||||||
"""Returns the str representation of the app."""
|
"""Returns the str representation of the app."""
|
||||||
|
|||||||
+4
-4
@@ -173,16 +173,16 @@ def slugify(string: str) -> str:
|
|||||||
modified_string = string.lower()
|
modified_string = string.lower()
|
||||||
|
|
||||||
# Remove special characters
|
# Remove special characters
|
||||||
modified_string = re.sub(r"[^\w\s-]", "-", modified_string)
|
modified_string = re.sub(r"[^\w\s-]", ".", modified_string)
|
||||||
|
|
||||||
# Replace spaces with dashes
|
# Replace spaces with dashes
|
||||||
modified_string = re.sub(r"\s+", "-", modified_string)
|
modified_string = re.sub(r"\s+", ".", modified_string)
|
||||||
|
|
||||||
# Remove consecutive dashes
|
# Remove consecutive dashes
|
||||||
modified_string = re.sub(r"-+", "-", modified_string)
|
modified_string = re.sub(r"-+", ".", modified_string)
|
||||||
|
|
||||||
# Remove leading and trailing dashes
|
# Remove leading and trailing dashes
|
||||||
return modified_string.strip("-")
|
return modified_string.strip(".")
|
||||||
|
|
||||||
|
|
||||||
def _check_version(output: str) -> None:
|
def _check_version(output: str) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user