修复自定义 IP 失效

This commit is contained in:
Hyy2001X 2021-10-06 16:11:48 +08:00
parent 2736b5f15d
commit 56a866cec5
9 changed files with 58 additions and 58 deletions

View File

@ -4,14 +4,14 @@
# Author: Hyy2001X # # Author: Hyy2001X #
########################################################### ###########################################################
name: Asus_ACRH17 name: ASUS_acrh17
### 以下内容请保持不变 (请修改下方: 环境变量设置) ### 以下内容请保持不变 (请修改下方: 环境变量设置)
on: on:
repository_dispatch: repository_dispatch:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
ip_addr: IP:
description: '固件 IP 地址 [可选]' description: '固件 IP 地址 [可选]'
default: '' default: ''
### END ### END
@ -68,6 +68,11 @@ jobs:
[ -z $REPO_BRANCH ] && REPO_BRANCH=master [ -z $REPO_BRANCH ] && REPO_BRANCH=master
echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV
echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Initialization Environment - name: Initialization Environment
env: env:
@ -84,11 +89,6 @@ jobs:
sudo -E apt-get -y autoremove --purge sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean sudo -E apt-get clean
fi fi
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Clone Openwrt Source Code - name: Clone Openwrt Source Code
run: | run: |

View File

@ -4,14 +4,14 @@
# Author: Hyy2001X # # Author: Hyy2001X #
########################################################### ###########################################################
name: Newifi_D2 name: NEWIFI_D2
### 以下内容请保持不变 (请修改下方: 环境变量设置) ### 以下内容请保持不变 (请修改下方: 环境变量设置)
on: on:
repository_dispatch: repository_dispatch:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
ip_addr: IP:
description: '固件 IP 地址 [可选]' description: '固件 IP 地址 [可选]'
default: '' default: ''
### END ### END
@ -68,6 +68,11 @@ jobs:
[ -z $REPO_BRANCH ] && REPO_BRANCH=master [ -z $REPO_BRANCH ] && REPO_BRANCH=master
echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV
echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Initialization Environment - name: Initialization Environment
env: env:
@ -84,11 +89,6 @@ jobs:
sudo -E apt-get -y autoremove --purge sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean sudo -E apt-get clean
fi fi
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Clone Openwrt Source Code - name: Clone Openwrt Source Code
run: | run: |

View File

@ -4,14 +4,14 @@
# Author: Hyy2001X # # Author: Hyy2001X #
########################################################### ###########################################################
name: Newifi_D1 name: NEWIFI_D1
### 以下内容请保持不变 (请修改下方: 环境变量设置) ### 以下内容请保持不变 (请修改下方: 环境变量设置)
on: on:
repository_dispatch: repository_dispatch:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
ip_addr: IP:
description: '固件 IP 地址 [可选]' description: '固件 IP 地址 [可选]'
default: '' default: ''
### END ### END
@ -68,6 +68,11 @@ jobs:
[ -z $REPO_BRANCH ] && REPO_BRANCH=master [ -z $REPO_BRANCH ] && REPO_BRANCH=master
echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV
echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Initialization Environment - name: Initialization Environment
env: env:
@ -84,11 +89,6 @@ jobs:
sudo -E apt-get -y autoremove --purge sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean sudo -E apt-get clean
fi fi
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Clone Openwrt Source Code - name: Clone Openwrt Source Code
run: | run: |

View File

@ -4,14 +4,14 @@
# Author: Hyy2001X # # Author: Hyy2001X #
########################################################### ###########################################################
name: Newifi_Y1 name: NEWIFI_Y1
### 以下内容请保持不变 (请修改下方: 环境变量设置) ### 以下内容请保持不变 (请修改下方: 环境变量设置)
on: on:
repository_dispatch: repository_dispatch:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
ip_addr: IP:
description: '固件 IP 地址 [可选]' description: '固件 IP 地址 [可选]'
default: '' default: ''
### END ### END
@ -68,6 +68,11 @@ jobs:
[ -z $REPO_BRANCH ] && REPO_BRANCH=master [ -z $REPO_BRANCH ] && REPO_BRANCH=master
echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV
echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Initialization Environment - name: Initialization Environment
env: env:
@ -84,11 +89,6 @@ jobs:
sudo -E apt-get -y autoremove --purge sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean sudo -E apt-get clean
fi fi
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Clone Openwrt Source Code - name: Clone Openwrt Source Code
run: | run: |

View File

@ -11,7 +11,7 @@ on:
repository_dispatch: repository_dispatch:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
ip_addr: IP:
description: '固件 IP 地址 [可选]' description: '固件 IP 地址 [可选]'
default: '' default: ''
### END ### END
@ -68,6 +68,11 @@ jobs:
[ -z $REPO_BRANCH ] && REPO_BRANCH=master [ -z $REPO_BRANCH ] && REPO_BRANCH=master
echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV
echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Initialization Environment - name: Initialization Environment
env: env:
@ -84,11 +89,6 @@ jobs:
sudo -E apt-get -y autoremove --purge sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean sudo -E apt-get clean
fi fi
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Clone Openwrt Source Code - name: Clone Openwrt Source Code
run: | run: |

View File

@ -11,7 +11,7 @@ on:
repository_dispatch: repository_dispatch:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
ip_addr: IP:
description: '固件 IP 地址 [可选]' description: '固件 IP 地址 [可选]'
default: '' default: ''
### END ### END
@ -68,6 +68,11 @@ jobs:
[ -z $REPO_BRANCH ] && REPO_BRANCH=master [ -z $REPO_BRANCH ] && REPO_BRANCH=master
echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV
echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Initialization Environment - name: Initialization Environment
env: env:
@ -84,11 +89,6 @@ jobs:
sudo -E apt-get -y autoremove --purge sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean sudo -E apt-get clean
fi fi
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Clone Openwrt Source Code - name: Clone Openwrt Source Code
run: | run: |

View File

@ -11,7 +11,7 @@ on:
repository_dispatch: repository_dispatch:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
ip_addr: IP:
description: '固件 IP 地址 [可选]' description: '固件 IP 地址 [可选]'
default: '' default: ''
### END ### END
@ -68,6 +68,11 @@ jobs:
[ -z $REPO_BRANCH ] && REPO_BRANCH=master [ -z $REPO_BRANCH ] && REPO_BRANCH=master
echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV
echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Initialization Environment - name: Initialization Environment
env: env:
@ -84,11 +89,6 @@ jobs:
sudo -E apt-get -y autoremove --purge sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean sudo -E apt-get clean
fi fi
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Clone Openwrt Source Code - name: Clone Openwrt Source Code
run: | run: |

View File

@ -11,7 +11,7 @@ on:
repository_dispatch: repository_dispatch:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
ip_addr: IP:
description: '固件 IP 地址 [可选]' description: '固件 IP 地址 [可选]'
default: '' default: ''
### END ### END
@ -68,6 +68,11 @@ jobs:
[ -z $REPO_BRANCH ] && REPO_BRANCH=master [ -z $REPO_BRANCH ] && REPO_BRANCH=master
echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV
echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Initialization Environment - name: Initialization Environment
env: env:
@ -84,11 +89,6 @@ jobs:
sudo -E apt-get -y autoremove --purge sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean sudo -E apt-get clean
fi fi
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Clone Openwrt Source Code - name: Clone Openwrt Source Code
run: | run: |

View File

@ -4,7 +4,7 @@
# Author: Hyy2001X # # Author: Hyy2001X #
########################################################### ###########################################################
name: Test name: TEST
### 以下内容请保持不变 (请修改下方: 环境变量设置) ### 以下内容请保持不变 (请修改下方: 环境变量设置)
on: on:
@ -65,6 +65,11 @@ jobs:
[ -z $REPO_BRANCH ] && REPO_BRANCH=master [ -z $REPO_BRANCH ] && REPO_BRANCH=master
echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV echo "REPO_URL=$REPO_URL" >> $GITHUB_ENV
echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Initialization Environment - name: Initialization Environment
env: env:
@ -81,11 +86,6 @@ jobs:
sudo -E apt-get -y autoremove --purge sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean sudo -E apt-get clean
fi fi
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 "Before_IP_Address=${{ github.event.inputs.IP }}" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Openwrt_Repository=$REPO_URL" >> $GITHUB_WORKSPACE/Openwrt.info
echo "Artifacts_Date=$(date +%m%d%H%M)" >> $GITHUB_ENV
- name: Clone Openwrt Source Code - name: Clone Openwrt Source Code
run: | run: |