From d309253b06d7ed5a75442423f6d52b7a8c745020 Mon Sep 17 00:00:00 2001 From: elseif Date: Wed, 19 Feb 2025 11:12:54 +0800 Subject: [PATCH] Update mikrotik_patch_7.yml Signed-off-by: elseif --- .github/workflows/mikrotik_patch_7.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mikrotik_patch_7.yml b/.github/workflows/mikrotik_patch_7.yml index 3c40142..b54769b 100644 --- a/.github/workflows/mikrotik_patch_7.yml +++ b/.github/workflows/mikrotik_patch_7.yml @@ -27,6 +27,11 @@ on: required: false default: '' type: string + buildtime: + description: "Build Time" + required: false + default: '' + type: string permissions: contents: write @@ -56,7 +61,13 @@ jobs: steps: - name: Set build time id: set_buildtime - run: echo "BUILD_TIME=$(date +'%s')" >> $GITHUB_OUTPUT + run: + _BUILD_TIME=${{ github.event.inputs.buildtime }} + if [$BUILD_TIME == ""];then + echo "BUILD_TIME=$(date +'%s')" >> $GITHUB_OUTPUT + else + echo "BUILD_TIME=$_BUILD_TIME" >> $GITHUB_OUTPUT + fi Patch_RouterOS: needs: Set_BuildTime