From e7ec309c060c16629abdb3b8449b2c136db66245 Mon Sep 17 00:00:00 2001 From: moruiris <53965900+moruiris@users.noreply.github.com> Date: Fri, 6 Jan 2023 15:24:57 +0800 Subject: [PATCH] Update and rename openwrt_R3P.yml to OpenWrt_R3P.yml --- .../{openwrt_R3P.yml => OpenWrt_R3P.yml} | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) rename .github/workflows/{openwrt_R3P.yml => OpenWrt_R3P.yml} (93%) diff --git a/.github/workflows/openwrt_R3P.yml b/.github/workflows/OpenWrt_R3P.yml similarity index 93% rename from .github/workflows/openwrt_R3P.yml rename to .github/workflows/OpenWrt_R3P.yml index 69d0c0c..c98c5dc 100644 --- a/.github/workflows/openwrt_R3P.yml +++ b/.github/workflows/OpenWrt_R3P.yml @@ -1,4 +1,4 @@ -name: openwrt_R3P +name: OpenWrt_R3P on: schedule: @@ -8,13 +8,15 @@ on: env: REPO_URL: https://github.com/openwrt/openwrt REPO_BRANCH: master - CONFIG_FILE: R3P/.config - DIY_P1_SH: diy-part1.sh - DIY_P2_SH: diy-part2.sh + FEEDS_CONF: OpenWrt/R3P/feeds.conf.default + CONFIG_FILE: OpenWrt/R3P/.config + DIY_P1_SH: OpenWrt/R3P/diy-part1.sh + DIY_P2_SH: OpenWrt/R3P/diy-part2.sh + SSH_ACTIONS: false UPLOAD_FIRMWARE: true UPLOAD_RELEASE: true TZ: Asia/Shanghai - OPENWRT_NAME: openwrt + OPENWRT_NAME: Openwrt jobs: build: @@ -22,7 +24,7 @@ jobs: steps: - name: 检查项目分支 - uses: actions/checkout@openwrt + uses: actions/checkout@main - name: 初始化编译环境 env: @@ -43,6 +45,7 @@ jobs: - name: 加载feeds.conf.default & DIY_P1_SH run: | + [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default chmod +x $DIY_P1_SH cd openwrt $GITHUB_WORKSPACE/$DIY_P1_SH @@ -52,14 +55,12 @@ jobs: run: | ./scripts/feeds update -a ./scripts/feeds install -a - - name: 加载config & DIY_P2_SH run: | [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config chmod +x $DIY_P2_SH cd openwrt $GITHUB_WORKSPACE/$DIY_P2_SH - - name: 下载安装包 id: package run: |