Browse Source
Update mikrotik_patch_7.yml
Signed-off-by: elseif <elseif@live.cn>
pull/110/head
elseif
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
12 additions and
1 deletions
-
.github/workflows/mikrotik_patch_7.yml
|
|
@ -27,6 +27,11 @@ on: |
|
|
required: false |
|
|
required: false |
|
|
default: '' |
|
|
default: '' |
|
|
type: string |
|
|
type: string |
|
|
|
|
|
buildtime: |
|
|
|
|
|
description: "Build Time" |
|
|
|
|
|
required: false |
|
|
|
|
|
default: '' |
|
|
|
|
|
type: string |
|
|
permissions: |
|
|
permissions: |
|
|
contents: write |
|
|
contents: write |
|
|
|
|
|
|
|
|
@ -56,7 +61,13 @@ jobs: |
|
|
steps: |
|
|
steps: |
|
|
- name: Set build time |
|
|
- name: Set build time |
|
|
id: set_buildtime |
|
|
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: |
|
|
Patch_RouterOS: |
|
|
needs: Set_BuildTime |
|
|
needs: Set_BuildTime |
|
|
|