Unverified Commit 06b25ad8 authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

update info md

parent 33836a84
...@@ -91,20 +91,22 @@ jobs: ...@@ -91,20 +91,22 @@ jobs:
- name: Create info - name: Create info
run: | run: |
cat > router-info.md <<EOF cat > ${{ github.workspace }}/router-info.md <<EOF
## 📡 路由器后台信息 ## 📡 路由器后台信息
- 🏠 **后台地址**: ${{ github.event.inputs.custom_router_ip }} - 🏠 **后台地址**: ${{ github.event.inputs.custom_router_ip }}
- 👤 **用户名**: root - 👤 **用户名**: root
- 🔑 **密码**: 无 - 🔑 **密码**: 无
EOF EOF
if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then
extra_content="#### 默认带docker" extra_content="#### 默认带docker"
echo -e "\n $extra_content" >> ${{ github.workspace }}/router-info.md echo -e "\n$extra_content" >> ${{ github.workspace }}/router-info.md
else else
echo -e "NO docker" echo -e "\n#### 不带docker" >> ${{ github.workspace }}/router-info.md
fi fi
- name: Upload ImmortWrt as release assets - name: Upload ImmortWrt as release assets
uses: softprops/action-gh-release@v2.2.1 uses: softprops/action-gh-release@v2.2.1
with: with:
......
...@@ -85,22 +85,21 @@ jobs: ...@@ -85,22 +85,21 @@ jobs:
- name: Create info - name: Create info
run: | run: |
cat > router-info.md <<EOF cat > ${{ github.workspace }}/router-info.md <<EOF
## 📡 路由器后台信息 ## 📡 路由器后台信息
- 🏠 **后台地址**: ${{ github.event.inputs.custom_router_ip }} - 🏠 **后台地址**: ${{ github.event.inputs.custom_router_ip }}
- 👤 **用户名**: root - 👤 **用户名**: root
- 🔑 **密码**: 无 - 🔑 **密码**: 无
EOF EOF
if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then
extra_content="#### 默认带docker" extra_content="#### 默认带docker"
echo -e "\n $extra_content" >> ${{ github.workspace }}/router-info.md echo -e "\n$extra_content" >> ${{ github.workspace }}/router-info.md
else else
echo -e "NO docker" echo -e "\n#### 不带docker" >> ${{ github.workspace }}/router-info.md
fi fi
- name: Upload ImmortWrt as release assets - name: Upload ImmortWrt as release assets
uses: softprops/action-gh-release@v2.2.1 uses: softprops/action-gh-release@v2.2.1
with: with:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment