mirror of
https://github.com/xopenwrt/X-OpenWrt-New.git
synced 2026-09-18 08:20:11 +00:00
新增快捷修改固件 IP 地址
This commit is contained in:
@@ -13,9 +13,12 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ssh:
|
||||
description: 'SSH connection to Actions'
|
||||
description: 'SSH 连接到 Actions [可选]'
|
||||
required: true
|
||||
default: 'false'
|
||||
ip_addr:
|
||||
description: '固件 IP 地址 [可选]'
|
||||
default: ''
|
||||
|
||||
# schedule:
|
||||
# - cron: 0 11 * * *
|
||||
@@ -55,6 +58,7 @@ jobs:
|
||||
sudo chown $USER:$GROUPS /workdir
|
||||
echo "Compile_Date=$(date +%Y%m%d%H%M)" > $GITHUB_WORKSPACE/Openwrt.info
|
||||
echo "Display_Date=$(date +%Y/%m/%d)" >> $GITHUB_WORKSPACE/Openwrt.info
|
||||
echo "Defined_IP_Address=${{ github.event.inputs.ip_addr }}" >> $GITHUB_WORKSPACE/Openwrt.info
|
||||
echo "Artifacts_Date=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
|
||||
touch update_log.txt
|
||||
|
||||
@@ -153,4 +157,4 @@ jobs:
|
||||
if: env.REMOVE_WORKFLOW_RUNS == 'true' && !cancelled()
|
||||
with:
|
||||
retain_days: 1
|
||||
keep_minimum_runs: 3
|
||||
keep_minimum_runs: 3
|
||||
|
||||
@@ -13,9 +13,12 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ssh:
|
||||
description: 'SSH connection to Actions'
|
||||
description: 'SSH 连接到 Actions [可选]'
|
||||
required: true
|
||||
default: 'false'
|
||||
ip_addr:
|
||||
description: '固件 IP 地址 [可选]'
|
||||
default: ''
|
||||
|
||||
# schedule:
|
||||
# - cron: 0 11 * * *
|
||||
@@ -55,6 +58,7 @@ jobs:
|
||||
sudo chown $USER:$GROUPS /workdir
|
||||
echo "Compile_Date=$(date +%Y%m%d%H%M)" > $GITHUB_WORKSPACE/Openwrt.info
|
||||
echo "Display_Date=$(date +%Y/%m/%d)" >> $GITHUB_WORKSPACE/Openwrt.info
|
||||
echo "Defined_IP_Address=${{ github.event.inputs.ip_addr }}" >> $GITHUB_WORKSPACE/Openwrt.info
|
||||
echo "Artifacts_Date=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
|
||||
touch update_log.txt
|
||||
|
||||
|
||||
@@ -13,9 +13,12 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ssh:
|
||||
description: 'SSH connection to Actions'
|
||||
description: 'SSH 连接到 Actions [可选]'
|
||||
required: true
|
||||
default: 'false'
|
||||
ip_addr:
|
||||
description: '固件 IP 地址 [可选]'
|
||||
default: ''
|
||||
|
||||
# schedule:
|
||||
# - cron: 0 11 * * *
|
||||
@@ -55,6 +58,7 @@ jobs:
|
||||
sudo chown $USER:$GROUPS /workdir
|
||||
echo "Compile_Date=$(date +%Y%m%d%H%M)" > $GITHUB_WORKSPACE/Openwrt.info
|
||||
echo "Display_Date=$(date +%Y/%m/%d)" >> $GITHUB_WORKSPACE/Openwrt.info
|
||||
echo "Defined_IP_Address=${{ github.event.inputs.ip_addr }}" >> $GITHUB_WORKSPACE/Openwrt.info
|
||||
echo "Artifacts_Date=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
|
||||
touch update_log.txt
|
||||
|
||||
@@ -153,4 +157,4 @@ jobs:
|
||||
if: env.REMOVE_WORKFLOW_RUNS == 'true' && !cancelled()
|
||||
with:
|
||||
retain_days: 1
|
||||
keep_minimum_runs: 3
|
||||
keep_minimum_runs: 3
|
||||
|
||||
Reference in New Issue
Block a user