From cc4cc84e16325f9334da4d71f13fd7a1e7f565ac Mon Sep 17 00:00:00 2001
From: David Bauer <mail@david-bauer.net>
Date: Sun, 9 Jun 2024 12:22:22 +0200
Subject: [PATCH] github labels: update labeler action to v5

This requires a change of the configuration syntax.

Signed-off-by: David Bauer <mail@david-bauer.net>
---
 .github/labeler.yml          | 116 ++++++++++++++++++++++-------------
 .github/workflows/labels.yml |   2 +-
 2 files changed, 76 insertions(+), 42 deletions(-)

diff --git a/.github/labeler.yml b/.github/labeler.yml
index f4f70603..b410e6ef 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -1,59 +1,93 @@
 ---
 "3. topic: babel":
-  - package/gluon-l3roamd/**
-  - package/gluon-mesh-babel/**
-  - package/gluon-mmfd/**
+- changed-files:
+  - any-glob-to-any-file:
+    - package/gluon-l3roamd/**
+    - package/gluon-mesh-babel/**
+    - package/gluon-mmfd/**
 "3. topic: batman-adv":
-  - docs/package/gluon-mesh-batman-adv*
-  - package/gluon-alfred/**
-  - package/gluon-client-bridge/**
-  - package/gluon-mesh-batman-adv/**
-  - package/libbatadv/**
+- changed-files:
+  - any-glob-to-any-file:
+    - docs/package/gluon-mesh-batman-adv*
+    - package/gluon-alfred/**
+    - package/gluon-client-bridge/**
+    - package/gluon-mesh-batman-adv/**
+    - package/libbatadv/**
 "3. topic: build":
-  - Makefile
-  - scripts/**
+  - changed-files:
+    - any-glob-to-any-file:
+      - Makefile
+      - scripts/**
 "3. topic: config-mode":
-  - docs/dev/web/config-mode.rst
-  - docs/package/gluon-config-mode-*
-  - package/gluon-config-mode-*/**
-  - package/gluon-web*/**
+- changed-files:
+  - any-glob-to-any-file:
+    - docs/dev/web/config-mode.rst
+    - docs/package/gluon-config-mode-*
+    - package/gluon-config-mode-*/**
+    - package/gluon-web*/**
 "3. topic: continous integration":
-  - .github/workflows/*
-  - contrib/actions/**
-  - contrib/ci/**
+- changed-files:
+  - any-glob-to-any-file:
+    - .github/workflows/*
+    - contrib/actions/**
+    - contrib/ci/**
 "3. topic: docs":
-  - docs/**
+- changed-files:
+  - any-glob-to-any-file:
+    - docs/**
 "3. topic: fastd":
-  - docs/features/fastd*
-  - package/gluon-mesh-vpn-fastd/**
+- changed-files:
+  - any-glob-to-any-file:
+    - docs/features/fastd*
+    - package/gluon-mesh-vpn-fastd/**
 "3. topic: firewall":
-  - package/**/*-firewall
-  - package/gluon-ebtables-*/**
+- changed-files:
+  - any-glob-to-any-file:
+    - package/**/*-firewall
+    - package/gluon-ebtables-*/**
 "3. topic: hardware":
-  - package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac
-  - package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
-  - targets/*
+- changed-files:
+  - any-glob-to-any-file:
+    - package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac
+    - package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
+    - targets/*
 "3. topic: multidomain":
-  - docs/features/multidomain*
-  - docs/multidomain-site-example/**
-  - package/gluon-config-mode-domain-select/**
-  - package/gluon-scheduled-domain-switch/**
+- changed-files:
+  - any-glob-to-any-file:
+    - docs/features/multidomain*
+    - docs/multidomain-site-example/**
+    - package/gluon-config-mode-domain-select/**
+    - package/gluon-scheduled-domain-switch/**
 "3. topic: package":
-  - package/**
+- changed-files:
+  - any-glob-to-any-file:
+    - package/**
 "3. topic: respondd":
-  - package/**/*respondd*
-  - package/gluon-respondd/**
+- changed-files:
+  - any-glob-to-any-file:
+    - package/**/*respondd*
+    - package/gluon-respondd/**
 "3. topic: status-page":
-  - package/gluon-status-page/**
+- changed-files:
+  - any-glob-to-any-file:
+    - package/gluon-status-page/**
 "3. topic: tests":
-  - tests/**
+- changed-files:
+  - any-glob-to-any-file:
+    - tests/**
 "3. topic: tunneldigger":
-  - package/gluon-mesh-vpn-tunneldigger/**
+- changed-files:
+  - any-glob-to-any-file:
+    - package/gluon-mesh-vpn-tunneldigger/**
 "3. topic: wireguard":
-  - package/gluon-mesh-vpn-wireguard/**
+- changed-files:
+  - any-glob-to-any-file:
+    - package/gluon-mesh-vpn-wireguard/**
 "3. topic: wireless":
-  - package/gluon-mesh-wireless-sae/**
-  - package/gluon-private-wifi/**
-  - package/gluon-web-private-wifi/**
-  - package/gluon-web-wifi-config/**
-  - package/gluon-wireless-encryption-wpa3/**
+- changed-files:
+  - any-glob-to-any-file:
+    - package/gluon-mesh-wireless-sae/**
+    - package/gluon-private-wifi/**
+    - package/gluon-web-private-wifi/**
+    - package/gluon-web-wifi-config/**
+    - package/gluon-wireless-encryption-wpa3/**
diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml
index b3c920fa..4626ce1f 100644
--- a/.github/workflows/labels.yml
+++ b/.github/workflows/labels.yml
@@ -15,7 +15,7 @@ jobs:
     runs-on: ubuntu-22.04
     if: github.repository_owner == 'freifunk-gluon'
     steps:
-    - uses: actions/labeler@v4
+    - uses: actions/labeler@v5
       with:
         repo-token: ${{ secrets.GITHUB_TOKEN }}
         sync-labels: true
-- 
GitLab