CI: update actions/labeler to v5

* Version 5 of this action updated the runtime to Node.js 20.
 All scripts are now run with Node.js 20 instead of Node.js 16
 and are affected by any breaking changes between Node.js 16 and 20.
* adapt the labeler configuration to the new format

Follow-up to #16251 this was reverted with b870c16534c05ddc94149c6ff56976d8de8a353f
Link: https://github.com/openwrt/openwrt/pull/16451
Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16451
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Goetz Goerisch 2024-09-21 20:00:33 +00:00 committed by Robert Marko
parent b83c7448d3
commit 51aa9130f7
2 changed files with 177 additions and 87 deletions

260
.github/labeler.yml vendored
View File

@ -1,137 +1,227 @@
# target/* # target/*
"target/airoha": "target/airoha":
- "target/linux/airoha/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/airoha/**"
"target/apm821xx": "target/apm821xx":
- "target/linux/apm821xx/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/apm821xx/**"
"target/archs38": "target/archs38":
- "target/linux/archs38/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/archs38/**"
"target/armsr": "target/armsr":
- "target/linux/armsr/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/armsr/**"
"target/at91": "target/at91":
- "target/linux/at91/**" - changed-files:
- "package/boot/at91bootstrap/**" - any-glob-to-any-file:
- "package/boot/uboot-at91/**" - "target/linux/at91/**"
- "package/boot/at91bootstrap/**"
- "package/boot/uboot-at91/**"
"target/ath79": "target/ath79":
- "target/linux/ath79/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/ath79/**"
"target/bcm27xx": "target/bcm27xx":
- "target/linux/bcm27xx/**" - changed-files:
- "package/kernel/bcm27xx-gpu-fw/**" - any-glob-to-any-file:
- "target/linux/bcm27xx/**"
- "package/kernel/bcm27xx-gpu-fw/**"
"target/bcm47xx": "target/bcm47xx":
- "target/linux/bcm47xx/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/bcm47xx/**"
"target/bcm4908": "target/bcm4908":
- "target/linux/bcm4908/**" - changed-files:
- "package/boot/uboot-bcm4908/**" - any-glob-to-any-file:
- "target/linux/bcm4908/**"
- "package/boot/uboot-bcm4908/**"
"target/bcm53xx": "target/bcm53xx":
- "target/linux/bcm53xx/**" - changed-files:
- "package/boot/uboot-bcm53xx/**" - any-glob-to-any-file:
- "target/linux/bcm53xx/**"
- "package/boot/uboot-bcm53xx/**"
"target/bcm63xx": "target/bcm63xx":
- "target/linux/bcm63xx/**" - changed-files:
- "package/kernel/bcm63xx-cfe/**" - any-glob-to-any-file:
- "package/boot/arm-trusted-firmware-bcm63xx/**" - "target/linux/bcm63xx/**"
- "package/kernel/bcm63xx-cfe/**"
- "package/boot/arm-trusted-firmware-bcm63xx/**"
"target/bmips": "target/bmips":
- "target/linux/bmips/**" - changed-files:
- "package/boot/uboot-bmips/**" - any-glob-to-any-file:
- "target/linux/bmips/**"
- "package/boot/uboot-bmips/**"
"target/d1": "target/d1":
- "target/linux/d1/**" - changed-files:
- "package/boot/uboot-d1/**" - any-glob-to-any-file:
- "package/boot/opensbi/**" - "target/linux/d1/**"
- "package/boot/uboot-d1/**"
- "package/boot/opensbi/**"
"target/gemini": "target/gemini":
- "target/linux/gemini/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/gemini/**"
"target/imx": "target/imx":
- "target/linux/imx/**" - changed-files:
- "package/boot/imx-bootlets/**" - any-glob-to-any-file:
- "package/boot/uboot-imx/**" - "target/linux/imx/**"
- "package/boot/imx-bootlets/**"
- "package/boot/uboot-imx/**"
"target/ipq40xx": "target/ipq40xx":
- "target/linux/ipq40xx/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/ipq40xx/**"
"target/ipq806x": "target/ipq806x":
- "target/linux/ipq806x/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/ipq806x/**"
"target/qualcommax": "target/qualcommax":
- "target/linux/qualcommax/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/qualcommax/**"
"target/kirkwood": "target/kirkwood":
- "target/linux/kirkwood/**" - changed-files:
- "package/boot/uboot-kirkwood/**" - any-glob-to-any-file:
- "target/linux/kirkwood/**"
- "package/boot/uboot-kirkwood/**"
"target/lantiq": "target/lantiq":
- "target/linux/lantiq/**" - changed-files:
- "package/kernel/lantiq/**" - any-glob-to-any-file:
- "package/firmware/lantiq/**" - "target/linux/lantiq/**"
- "package/boot/uboot-lantiq/**" - "package/kernel/lantiq/**"
- "package/firmware/lantiq/**"
- "package/boot/uboot-lantiq/**"
"target/layerscape": "target/layerscape":
- "target/linux/layerscape/**" - changed-files:
- "package/firmware/layerscape/**" - any-glob-to-any-file:
- "package/boot/tfa-layerscape/**" - "target/linux/layerscape/**"
- "package/boot/uboot-layerscape/**" - "package/firmware/layerscape/**"
- "package/network/utils/layerscape/**" - "package/boot/tfa-layerscape/**"
- "package/boot/uboot-layerscape/**"
- "package/network/utils/layerscape/**"
"target/malta": "target/malta":
- "target/linux/malta/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/malta/**"
"target/mediatek": "target/mediatek":
- "target/linux/mediatek/**" - changed-files:
- "package/boot/arm-trusted-firmware-mediatek/**" - any-glob-to-any-file:
- "package/boot/uboot-mediatek/**" - "target/linux/mediatek/**"
- "package/boot/arm-trusted-firmware-mediatek/**"
- "package/boot/uboot-mediatek/**"
"target/mpc85xx": "target/mpc85xx":
- "target/linux/mpc85xx/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/mpc85xx/**"
"target/mvebu": "target/mvebu":
- "target/linux/mvebu/**" - changed-files:
- "package/boot/arm-trusted-firmware-mvebu/**" - any-glob-to-any-file:
- "package/boot/uboot-mvebu/**" - "target/linux/mvebu/**"
- "package/boot/arm-trusted-firmware-mvebu/**"
- "package/boot/uboot-mvebu/**"
"target/mxs": "target/mxs":
- "target/linux/mxs/**" - changed-files:
- "package/boot/uboot-mxs/**" - any-glob-to-any-file:
- "target/linux/mxs/**"
- "package/boot/uboot-mxs/**"
"target/octeon": "target/octeon":
- "target/linux/octeon/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/octeon/**"
"target/omap": "target/omap":
- "target/linux/omap/**" - changed-files:
- "package/boot/uboot-omap/**" - any-glob-to-any-file:
- "target/linux/omap/**"
- "package/boot/uboot-omap/**"
"target/pistachio": "target/pistachio":
- "target/linux/pistachio/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/pistachio/**"
"target/qoriq": "target/qoriq":
- "target/linux/qoriq/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/qoriq/**"
"target/ramips": "target/ramips":
- "target/linux/ramips/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/ramips/**"
"target/realtek": "target/realtek":
- "target/linux/realtek/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/realtek/**"
"target/rockchip": "target/rockchip":
- "target/linux/rockchip/**" - changed-files:
- "package/boot/arm-trusted-firmware-rockchip/**" - any-glob-to-any-file:
- "package/boot/uboot-rockchip/**" - "target/linux/rockchip/**"
- "package/boot/arm-trusted-firmware-rockchip/**"
- "package/boot/uboot-rockchip/**"
"target/sifiveu": "target/sifiveu":
- "target/linux/sifiveu/**" - changed-files:
- "package/boot/uboot-sifiveu/**" - any-glob-to-any-file:
- "package/boot/opensbi/**" - "target/linux/sifiveu/**"
- "package/boot/uboot-sifiveu/**"
- "package/boot/opensbi/**"
"target/sunxi": "target/sunxi":
- "target/linux/sunxi/**" - changed-files:
- "package/boot/arm-trusted-firmware-sunxi/**" - any-glob-to-any-file:
- "package/boot/uboot-sunxi/**" - "target/linux/sunxi/**"
- "package/boot/arm-trusted-firmware-sunxi/**"
- "package/boot/uboot-sunxi/**"
"target/tegra": "target/tegra":
- "target/linux/tegra/**" - changed-files:
- "package/boot/uboot-tegra/**" - any-glob-to-any-file:
- "target/linux/tegra/**"
- "package/boot/uboot-tegra/**"
"target/uml": "target/uml":
- "target/linux/uml/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/uml/**"
"target/x86": "target/x86":
- "target/linux/x86/**" - changed-files:
- any-glob-to-any-file:
- "target/linux/x86/**"
"target/zynq": "target/zynq":
- "target/linux/zynq/**" - changed-files:
- "package/boot/uboot-zynq/**" - any-glob-to-any-file:
- "target/linux/zynq/**"
- "package/boot/uboot-zynq/**"
# target/imagebuilder # target/imagebuilder
"target/imagebuilder": "target/imagebuilder":
- "target/imagebuilder/**" - changed-files:
- any-glob-to-any-file:
- "target/imagebuilder/**"
# kernel # kernel
"kernel": "kernel":
- "target/linux/generic/**" - changed-files:
- "target/linux/**/config-*" - any-glob-to-any-file:
- "target/linux/**/patches-*" - "target/linux/generic/**"
- "target/linux/**/files/**" - "target/linux/**/config-*"
- "package/kernel/linux/**" - "target/linux/**/patches-*"
- "target/linux/**/files/**"
- "package/kernel/linux/**"
# core packages # core packages
"core packages": "core packages":
- "package/**" - changed-files:
- any-glob-to-any-file:
- "package/**"
# build/scripts/tools # build/scripts/tools
"build/scripts/tools": "build/scripts/tools":
- "include/**" - changed-files:
- "scripts/**" - any-glob-to-any-file:
- "tools/**" - "include/**"
- "scripts/**"
- "tools/**"
# toolchain # toolchain
"toolchain": "toolchain":
- "toolchain/**" - changed-files:
- any-glob-to-any-file:
- "toolchain/**"
# GitHub/CI # GitHub/CI
"GitHub/CI": "GitHub/CI":
- ".github/**" - changed-files:
- any-glob-to-any-file:
- ".github/**"

View File

@ -14,7 +14,7 @@ jobs:
name: Pull Request Labeler name: Pull Request Labeler
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/labeler@v4 - uses: actions/labeler@v5
with: with:
repo-token: '${{ secrets.GITHUB_TOKEN }}' repo-token: '${{ secrets.GITHUB_TOKEN }}'
@ -25,7 +25,7 @@ jobs:
echo "release-tag=$(echo ${{ github.base_ref }} | sed 's/openwrt-/release\//')" >> $GITHUB_OUTPUT echo "release-tag=$(echo ${{ github.base_ref }} | sed 's/openwrt-/release\//')" >> $GITHUB_OUTPUT
fi fi
- uses: buildsville/add-remove-label@v2.0.0 - uses: buildsville/add-remove-label@v2.0.1
if: ${{ steps.check-branch.outputs.release-tag }} if: ${{ steps.check-branch.outputs.release-tag }}
with: with:
token: ${{secrets.GITHUB_TOKEN}} token: ${{secrets.GITHUB_TOKEN}}