diff --git a/.github/workflows/mikrotik_patch_7.yml b/.github/workflows/mikrotik_patch_7.yml index 698f43a..79258ea 100644 --- a/.github/workflows/mikrotik_patch_7.yml +++ b/.github/workflows/mikrotik_patch_7.yml @@ -74,7 +74,7 @@ jobs: BUILD_TIME="${{ github.event.inputs.buildtime }}" RELEASE="${{ github.event.inputs.release }}" if [ -z "$BUILD_TIME" ]; then - BUILD_TIME=$(date +'%Y%m%d%H%M%S') + BUILD_TIME=$(date +'%s') fi if [ -z "$RELEASE" ]; then RELEASE=false @@ -83,7 +83,7 @@ jobs: CHANNEL="${{ github.event.inputs.channel }}" MATRIX_JSON=$(jq -nc --arg arch "$ARCH" --arg channel "$CHANNEL" '[{arch: $arch, channel: $channel}]') else - BUILD_TIME=$(date +'%Y%m%d%H%M%S') + BUILD_TIME=$(date +'%s') RELEASE=true MATRIX_JSON='[ {"arch":"x86","channel":"stable"}, diff --git a/npk.py b/npk.py index 62532d1..ec573b1 100644 --- a/npk.py +++ b/npk.py @@ -228,7 +228,7 @@ class NovaPackage(Package): def sign(self,kcdsa_private_key:bytes,eddsa_private_key:bytes): import hashlib from mikro import mikro_kcdsa_sign,mikro_eddsa_sign - build_time = os.environ['BUILD_TIME'] if 'BUILD_TIME' in os.environ else None + build_time = os.getenv('BUILD_TIME',None) if len(self._packages) > 0: if build_time: self[NpkPartID.PKG_INFO].data._build_time = int(build_time)