From ebd18c44e5094c64ece9dda06d7799700c7a7abc Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sun, 14 Nov 2021 15:45:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/AutoBuild-lenovo_newifi-d1.yml | 174 ------------------ .../workflows/AutoBuild-lenovo_newifi-y1.yml | 174 ------------------ .../workflows/AutoBuild-p2w_r619ac-128m.yml | 2 +- .github/workflows/AutoBuild-redmi_ax6.yml | 174 ------------------ .github/workflows/AutoBuild-xiaoyu_xy-c5.yml | 2 +- ...y_Sync.yml => Module_Synchronise_Fork.yml} | 0 6 files changed, 2 insertions(+), 524 deletions(-) delete mode 100644 .github/workflows/AutoBuild-lenovo_newifi-d1.yml delete mode 100644 .github/workflows/AutoBuild-lenovo_newifi-y1.yml delete mode 100644 .github/workflows/AutoBuild-redmi_ax6.yml rename .github/workflows/{Module_Repository_Sync.yml => Module_Synchronise_Fork.yml} (100%) diff --git a/.github/workflows/AutoBuild-lenovo_newifi-d1.yml b/.github/workflows/AutoBuild-lenovo_newifi-d1.yml deleted file mode 100644 index d846454..0000000 --- a/.github/workflows/AutoBuild-lenovo_newifi-d1.yml +++ /dev/null @@ -1,174 +0,0 @@ -########################################################### -# Description: Compile OpenWrt by GitHub Actions # -# Based on: https://github.com/P3TERX/Actions-OpenWrt # -# Author: Hyy2001X # -########################################################### - -name: NEWIFI_D1 - -### 以下内容请保持不变 (请修改下方: 环境变量设置) -on: - repository_dispatch: - workflow_dispatch: - inputs: - IP: - description: '固件 IP 地址 [可选]' - default: '' -### END - - #push: - # branches: - # - master - - #schedule: - # - cron: 0 8 * * 5 - - #watch: - # types: [started] - -### 环境变量设置 -env: -# 编译时调用的 [.config] 文件名称 - CONFIG_FILE: lenovo_newifi-d1 -# 源码仓库:分支 - DEFAULT_SOURCE: coolsnowwolf/lede:master -# 上传固件到 Github Releases - UPLOAD_RELEASES: true -# 上传固件到 Github Artifacts - UPLOAD_ARTIFACTS: false -# 上传 bin 文件夹到 Github Artifacts - UPLOAD_BIN_ARTIFACTS: false -# 删除无用文件以增加编译空间 - DELETE_USELESS_FILES: true -# 删除早期的 workflow 任务 - DELETE_OLD_WORKFLOW: true -### END - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@main - - - name: Initialization Define Info - run: | - CONFIG_FILE=${{ env.CONFIG_FILE }} - DEFAULT_SOURCE=${{ env.DEFAULT_SOURCE }} - DELETE_USELESS_FILES=${{ env.DELETE_USELESS_FILES }} - echo "CONFIG_FILE=$CONFIG_FILE" >> $GITHUB_ENV - echo "DELETE_USELESS_FILES=$DELETE_USELESS_FILES" >> $GITHUB_ENV - [ ! -f "$GITHUB_WORKSPACE/Configs/$CONFIG_FILE" ] && { - echo "Config_File: [/Config/$CONFIG_FILE] is not detected!" - exit 1 - } - export REPO_URL="https://github.com/$(echo $DEFAULT_SOURCE | cut -d \: -f 1)" - export REPO_BRANCH=$(echo $DEFAULT_SOURCE | cut -d \: -f 2) - [ -z $REPO_BRANCH ] && REPO_BRANCH=master - echo "REPO_URL=$REPO_URL" >> $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 - env: - DEBIAN_FRONTEND: noninteractive - run: | - sudo -E apt-get update - sudo -E apt-get -y install build-essential cmake asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint ccache curl wget vim nano python2.7 python3 python3-pip python3-ply haveged lrzsz device-tree-compiler scons antlr3 gperf intltool mkisofs rsync - sudo timedatectl set-timezone "Asia/Shanghai" - sudo mkdir -p /workdir - sudo chown $USER:$GROUPS /workdir - if [ "$DELETE_USELESS_FILES" == true ];then - docker rmi $(docker images -q) - sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php - sudo -E apt-get -y autoremove --purge - sudo -E apt-get clean - fi - - - name: Clone Openwrt Source Code - run: | - git clone -b $REPO_BRANCH $REPO_URL openwrt - ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt - cd openwrt - ./scripts/feeds update -a - ./scripts/feeds install -a > /dev/null 2>&1 - - - name: Run AutoBuild_DiyScript.sh - run: | - chmod +x Scripts/AutoBuild_*.sh - cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE openwrt/.config - cd openwrt - make defconfig > /dev/null 2>&1 - source $GITHUB_WORKSPACE/Scripts/AutoBuild_DiyScript.sh - source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh - Firmware-Diy_Main - source $GITHUB_WORKSPACE/openwrt/VARIABLE_FILE && Firmware-Diy - rm -f .config && cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE .config - - - name: Compile - run: | - export Compile_Result=false - cd openwrt - source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh && Firmware-Diy_Other - rm -rf ./tmp && ./scripts/feeds install -a > /dev/null 2>&1 - make defconfig - make download -j$(nproc) - make -j$(nproc) || make -j1 V=s - [ $? == 0 ] && echo "Compile_Result=true" >> $GITHUB_ENV - - - name: Process Firmware - if: env.Compile_Result == 'true' && !cancelled() - run: | - cd openwrt - source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh && Firmware-Diy_End - - - name: Upload Firmware to Artifacts - uses: actions/upload-artifact@main - if: env.UPLOAD_ARTIFACTS == 'true' && env.Compile_Result == 'true' && !cancelled() - with: - name: ${{ env.REPO_BRANCH }}_firmware_${{ env.Artifacts_Date }} - path: openwrt/bin/Firmware - - - name: Upload bin to Artifacts - uses: actions/upload-artifact@main - if: env.UPLOAD_BIN_ARTIFACTS == 'true' && env.Compile_Result == 'true' && !cancelled() - with: - name: ${{ env.REPO_BRANCH }}_bin_${{ env.Artifacts_Date }} - path: openwrt/bin - - - name: Upload Firmware to Github Release - uses: svenstaro/upload-release-action@v2 - if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled() - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: openwrt/bin/Firmware/* - file_glob: true - tag: AutoUpdate - overwrite: true - - - name: Download Github Release API - if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled() - run: | - wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API - - - name: Upload API to Github Release - if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled() - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./API - file_glob: true - tag: AutoUpdate - overwrite: true - - - name: Delete old Workflow Runs - uses: GitRML/delete-workflow-runs@main - if: env.DELETE_OLD_WORKFLOW == 'true' && !cancelled() - with: - retain_days: 1 - keep_minimum_runs: 3 diff --git a/.github/workflows/AutoBuild-lenovo_newifi-y1.yml b/.github/workflows/AutoBuild-lenovo_newifi-y1.yml deleted file mode 100644 index 1823cf3..0000000 --- a/.github/workflows/AutoBuild-lenovo_newifi-y1.yml +++ /dev/null @@ -1,174 +0,0 @@ -########################################################### -# Description: Compile OpenWrt by GitHub Actions # -# Based on: https://github.com/P3TERX/Actions-OpenWrt # -# Author: Hyy2001X # -########################################################### - -name: NEWIFI_Y1 - -### 以下内容请保持不变 (请修改下方: 环境变量设置) -on: - repository_dispatch: - workflow_dispatch: - inputs: - IP: - description: '固件 IP 地址 [可选]' - default: '' -### END - - #push: - # branches: - # - master - - #schedule: - # - cron: 0 8 * * 5 - - #watch: - # types: [started] - -### 环境变量设置 -env: -# 编译时调用的 [.config] 文件名称 - CONFIG_FILE: lenovo_newifi-y1 -# 源码仓库:分支 - DEFAULT_SOURCE: coolsnowwolf/lede:master -# 上传固件到 Github Releases - UPLOAD_RELEASES: true -# 上传固件到 Github Artifacts - UPLOAD_ARTIFACTS: false -# 上传 bin 文件夹到 Github Artifacts - UPLOAD_BIN_ARTIFACTS: false -# 删除无用文件以增加编译空间 - DELETE_USELESS_FILES: true -# 删除早期的 workflow 任务 - DELETE_OLD_WORKFLOW: true -### END - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@main - - - name: Initialization Define Info - run: | - CONFIG_FILE=${{ env.CONFIG_FILE }} - DEFAULT_SOURCE=${{ env.DEFAULT_SOURCE }} - DELETE_USELESS_FILES=${{ env.DELETE_USELESS_FILES }} - echo "CONFIG_FILE=$CONFIG_FILE" >> $GITHUB_ENV - echo "DELETE_USELESS_FILES=$DELETE_USELESS_FILES" >> $GITHUB_ENV - [ ! -f "$GITHUB_WORKSPACE/Configs/$CONFIG_FILE" ] && { - echo "Config_File: [/Config/$CONFIG_FILE] is not detected!" - exit 1 - } - export REPO_URL="https://github.com/$(echo $DEFAULT_SOURCE | cut -d \: -f 1)" - export REPO_BRANCH=$(echo $DEFAULT_SOURCE | cut -d \: -f 2) - [ -z $REPO_BRANCH ] && REPO_BRANCH=master - echo "REPO_URL=$REPO_URL" >> $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 - env: - DEBIAN_FRONTEND: noninteractive - run: | - sudo -E apt-get update - sudo -E apt-get -y install build-essential cmake asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint ccache curl wget vim nano python2.7 python3 python3-pip python3-ply haveged lrzsz device-tree-compiler scons antlr3 gperf intltool mkisofs rsync - sudo timedatectl set-timezone "Asia/Shanghai" - sudo mkdir -p /workdir - sudo chown $USER:$GROUPS /workdir - if [ "$DELETE_USELESS_FILES" == true ];then - docker rmi $(docker images -q) - sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php - sudo -E apt-get -y autoremove --purge - sudo -E apt-get clean - fi - - - name: Clone Openwrt Source Code - run: | - git clone -b $REPO_BRANCH $REPO_URL openwrt - ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt - cd openwrt - ./scripts/feeds update -a - ./scripts/feeds install -a > /dev/null 2>&1 - - - name: Run AutoBuild_DiyScript.sh - run: | - chmod +x Scripts/AutoBuild_*.sh - cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE openwrt/.config - cd openwrt - make defconfig > /dev/null 2>&1 - source $GITHUB_WORKSPACE/Scripts/AutoBuild_DiyScript.sh - source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh - Firmware-Diy_Main - source $GITHUB_WORKSPACE/openwrt/VARIABLE_FILE && Firmware-Diy - rm -f .config && cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE .config - - - name: Compile - run: | - export Compile_Result=false - cd openwrt - source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh && Firmware-Diy_Other - rm -rf ./tmp && ./scripts/feeds install -a > /dev/null 2>&1 - make defconfig - make download -j$(nproc) - make -j$(nproc) || make -j1 V=s - [ $? == 0 ] && echo "Compile_Result=true" >> $GITHUB_ENV - - - name: Process Firmware - if: env.Compile_Result == 'true' && !cancelled() - run: | - cd openwrt - source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh && Firmware-Diy_End - - - name: Upload Firmware to Artifacts - uses: actions/upload-artifact@main - if: env.UPLOAD_ARTIFACTS == 'true' && env.Compile_Result == 'true' && !cancelled() - with: - name: ${{ env.REPO_BRANCH }}_firmware_${{ env.Artifacts_Date }} - path: openwrt/bin/Firmware - - - name: Upload bin to Artifacts - uses: actions/upload-artifact@main - if: env.UPLOAD_BIN_ARTIFACTS == 'true' && env.Compile_Result == 'true' && !cancelled() - with: - name: ${{ env.REPO_BRANCH }}_bin_${{ env.Artifacts_Date }} - path: openwrt/bin - - - name: Upload Firmware to Github Release - uses: svenstaro/upload-release-action@v2 - if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled() - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: openwrt/bin/Firmware/* - file_glob: true - tag: AutoUpdate - overwrite: true - - - name: Download Github Release API - if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled() - run: | - wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API - - - name: Upload API to Github Release - if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled() - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./API - file_glob: true - tag: AutoUpdate - overwrite: true - - - name: Delete old Workflow Runs - uses: GitRML/delete-workflow-runs@main - if: env.DELETE_OLD_WORKFLOW == 'true' && !cancelled() - with: - retain_days: 1 - keep_minimum_runs: 3 diff --git a/.github/workflows/AutoBuild-p2w_r619ac-128m.yml b/.github/workflows/AutoBuild-p2w_r619ac-128m.yml index f2ff3b5..a35be05 100644 --- a/.github/workflows/AutoBuild-p2w_r619ac-128m.yml +++ b/.github/workflows/AutoBuild-p2w_r619ac-128m.yml @@ -4,7 +4,7 @@ # Author: Hyy2001X # ########################################################### -name: p2w_r619ac-128m +name: P&W_R619AC ### 以下内容请保持不变 (请修改下方: 环境变量设置) on: diff --git a/.github/workflows/AutoBuild-redmi_ax6.yml b/.github/workflows/AutoBuild-redmi_ax6.yml deleted file mode 100644 index ce6faa9..0000000 --- a/.github/workflows/AutoBuild-redmi_ax6.yml +++ /dev/null @@ -1,174 +0,0 @@ -########################################################### -# Description: Compile OpenWrt by GitHub Actions # -# Based on: https://github.com/P3TERX/Actions-OpenWrt # -# Author: Hyy2001X # -########################################################### - -name: Redmi_AX6 - -### 以下内容请保持不变 (请修改下方: 环境变量设置) -on: - repository_dispatch: - workflow_dispatch: - inputs: - IP: - description: '固件 IP 地址 [可选]' - default: '' -### END - - #push: - # branches: - # - master - - #schedule: - # - cron: 0 8 * * 5 - - #watch: - # types: [started] - -### 环境变量设置 -env: -# 编译时调用的 [.config] 文件名称 - CONFIG_FILE: redmi_ax6 -# 源码仓库:分支 - DEFAULT_SOURCE: coolsnowwolf/lede:master -# 上传固件到 Github Releases - UPLOAD_RELEASES: true -# 上传固件到 Github Artifacts - UPLOAD_ARTIFACTS: false -# 上传 bin 文件夹到 Github Artifacts - UPLOAD_BIN_ARTIFACTS: false -# 删除无用文件以增加编译空间 - DELETE_USELESS_FILES: true -# 删除早期的 workflow 任务 - DELETE_OLD_WORKFLOW: true -### END - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@main - - - name: Initialization Define Info - run: | - CONFIG_FILE=${{ env.CONFIG_FILE }} - DEFAULT_SOURCE=${{ env.DEFAULT_SOURCE }} - DELETE_USELESS_FILES=${{ env.DELETE_USELESS_FILES }} - echo "CONFIG_FILE=$CONFIG_FILE" >> $GITHUB_ENV - echo "DELETE_USELESS_FILES=$DELETE_USELESS_FILES" >> $GITHUB_ENV - [ ! -f "$GITHUB_WORKSPACE/Configs/$CONFIG_FILE" ] && { - echo "Config_File: [/Config/$CONFIG_FILE] is not detected!" - exit 1 - } - export REPO_URL="https://github.com/$(echo $DEFAULT_SOURCE | cut -d \: -f 1)" - export REPO_BRANCH=$(echo $DEFAULT_SOURCE | cut -d \: -f 2) - [ -z $REPO_BRANCH ] && REPO_BRANCH=master - echo "REPO_URL=$REPO_URL" >> $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 - env: - DEBIAN_FRONTEND: noninteractive - run: | - sudo -E apt-get update - sudo -E apt-get -y install build-essential cmake asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint ccache curl wget vim nano python2.7 python3 python3-pip python3-ply haveged lrzsz device-tree-compiler scons antlr3 gperf intltool mkisofs rsync - sudo timedatectl set-timezone "Asia/Shanghai" - sudo mkdir -p /workdir - sudo chown $USER:$GROUPS /workdir - if [ "$DELETE_USELESS_FILES" == true ];then - docker rmi $(docker images -q) - sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php - sudo -E apt-get -y autoremove --purge - sudo -E apt-get clean - fi - - - name: Clone Openwrt Source Code - run: | - git clone -b $REPO_BRANCH $REPO_URL openwrt - ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt - cd openwrt - ./scripts/feeds update -a - ./scripts/feeds install -a > /dev/null 2>&1 - - - name: Run AutoBuild_DiyScript.sh - run: | - chmod +x Scripts/AutoBuild_*.sh - cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE openwrt/.config - cd openwrt - make defconfig > /dev/null 2>&1 - source $GITHUB_WORKSPACE/Scripts/AutoBuild_DiyScript.sh - source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh - Firmware-Diy_Main - source $GITHUB_WORKSPACE/openwrt/VARIABLE_FILE && Firmware-Diy - rm -f .config && cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE .config - - - name: Compile - run: | - export Compile_Result=false - cd openwrt - source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh && Firmware-Diy_Other - rm -rf ./tmp && ./scripts/feeds install -a > /dev/null 2>&1 - make defconfig - make download -j$(nproc) - make -j$(nproc) || make -j1 V=s - [ $? == 0 ] && echo "Compile_Result=true" >> $GITHUB_ENV - - - name: Process Firmware - if: env.Compile_Result == 'true' && !cancelled() - run: | - cd openwrt - source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh && Firmware-Diy_End - - - name: Upload Firmware to Artifacts - uses: actions/upload-artifact@main - if: env.UPLOAD_ARTIFACTS == 'true' && env.Compile_Result == 'true' && !cancelled() - with: - name: ${{ env.REPO_BRANCH }}_firmware_${{ env.Artifacts_Date }} - path: openwrt/bin/Firmware - - - name: Upload bin to Artifacts - uses: actions/upload-artifact@main - if: env.UPLOAD_BIN_ARTIFACTS == 'true' && env.Compile_Result == 'true' && !cancelled() - with: - name: ${{ env.REPO_BRANCH }}_bin_${{ env.Artifacts_Date }} - path: openwrt/bin - - - name: Upload Firmware to Github Release - uses: svenstaro/upload-release-action@v2 - if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled() - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: openwrt/bin/Firmware/* - file_glob: true - tag: AutoUpdate - overwrite: true - - - name: Download Github Release API - if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled() - run: | - wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API - - - name: Upload API to Github Release - if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled() - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./API - file_glob: true - tag: AutoUpdate - overwrite: true - - - name: Delete old Workflow Runs - uses: GitRML/delete-workflow-runs@main - if: env.DELETE_OLD_WORKFLOW == 'true' && !cancelled() - with: - retain_days: 1 - keep_minimum_runs: 3 diff --git a/.github/workflows/AutoBuild-xiaoyu_xy-c5.yml b/.github/workflows/AutoBuild-xiaoyu_xy-c5.yml index bc34aaf..c7c3ff0 100644 --- a/.github/workflows/AutoBuild-xiaoyu_xy-c5.yml +++ b/.github/workflows/AutoBuild-xiaoyu_xy-c5.yml @@ -4,7 +4,7 @@ # Author: Hyy2001X # ########################################################### -name: Xiaoyu_Series +name: Xiaoyu_C5 ### 以下内容请保持不变 (请修改下方: 环境变量设置) on: diff --git a/.github/workflows/Module_Repository_Sync.yml b/.github/workflows/Module_Synchronise_Fork.yml similarity index 100% rename from .github/workflows/Module_Repository_Sync.yml rename to .github/workflows/Module_Synchronise_Fork.yml