mirror of
https://github.com/outbackdingo/openwrt-builder.git
synced 2026-01-27 10:19:59 +00:00
Select poe version based on action input
Select poe version based on action input also replace hardcoding of github account in curls
This commit is contained in:
19
.github/workflows/bpi-r4-BE14-janusz.yaml
vendored
19
.github/workflows/bpi-r4-BE14-janusz.yaml
vendored
@@ -5,12 +5,17 @@ name: BPI-R4 + BE14 + EHT fix by Janusz + luci BE
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
DEVICE_CONFIG:
|
||||
description: "Device configuration selection (default: non-poe)"
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
env:
|
||||
REMOTE_REPOSITORY: danpawlik/openwrt
|
||||
REMOTE_BRANCH: be14-janusz-v12-luci
|
||||
RELEASE_PREFIX: Mediatek_mt7988a_bpi-r4_be14_eht
|
||||
DEVICE_CONFIG: configs/mediatek/mt7988a/bpi-r4
|
||||
DEVICE_CONFIG: ${{ inputs.DEVICE_CONFIG == 'poe' && 'configs/mediatek/mt7988a/bpi-r4-poe' || 'configs/mediatek/mt7988a/bpi-r4' }}
|
||||
ROLE_CONFIG: configs/common/main-router
|
||||
|
||||
jobs:
|
||||
@@ -59,13 +64,13 @@ jobs:
|
||||
|
||||
- name: Configure firmware image
|
||||
run: |
|
||||
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/mediatek/mt7988a/bpi-r4 > .config
|
||||
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/luci >> .config
|
||||
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/snapshot-short >> .config
|
||||
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/${{ env.DEVICE_CONFIG }} > .config
|
||||
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/configs/common/luci >> .config
|
||||
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/configs/common/snapshot-short >> .config
|
||||
sed -i '/CONFIG_PACKAGE_wpad-mbedtls=y/d' .config
|
||||
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/openssl >> .config
|
||||
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/lte-5g-modem >> .config
|
||||
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/community >> .config
|
||||
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/configs/common/openssl >> .config
|
||||
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/configs/common/lte-5g-modem >> .config
|
||||
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/configs/common/community >> .config
|
||||
|
||||
- name: Run defconfig
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user