Skip to content

Commit

Permalink
Update Immortalwrt.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
makebl authored Jan 4, 2025
1 parent a6e9261 commit 367ae92
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/Immortalwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,22 @@ jobs:
ln -sf /${{ env.DIY_WORK }}/openwrt ${GITHUB_WORKSPACE}/openwrt
cp -Rf ${GITHUB_WORKSPACE}/build ${GITHUB_WORKSPACE}/openwrt/build
chmod -R +x ${GITHUB_WORKSPACE}/openwrt/build
- name: 修改 feeds.conf.default
run: |
cd openwrt
echo "当前 SOURCE_CODE 值是: $SOURCE_CODE"
# 判断是否为 COOLSNOWWOLF 编译
if [ "$SOURCE_CODE" == "COOLSNOWWOLF" ]; then
echo "正在编译 COOLSNOWWOLF,启用 luci feed"
# 使用 sed 修改 feeds.conf.default 文件
sed -i 's@src-git luci@# src-git luci@g' feeds.conf.default
sed -i 's@## src-git luci@src-git luci@g' feeds.conf.default
elif [ "$SOURCE_CODE" == "IMMORTALWRT" ]; then
echo "当前是 IMMORTALWRT 编译,跳过 luci feed 配置"
else
fi
- name: 公 告
if: env.REPO_TOKEN
run: |
Expand Down

0 comments on commit 367ae92

Please sign in to comment.