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:
Mike Wilks
2024-10-01 16:50:13 +01:00
committed by GitHub
parent 240c1b9f16
commit 384e664bfd

View File

@@ -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: |