From 76dcc45e9f2d3d7340462787de55aa52be0069cf Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 18 Sep 2025 12:01:42 +0200 Subject: [PATCH] Update autolabeler to use environment variable for config --- .github/workflows/autolabeler.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autolabeler.yml b/.github/workflows/autolabeler.yml index 63856bd90..6ca5e97b5 100644 --- a/.github/workflows/autolabeler.yml +++ b/.github/workflows/autolabeler.yml @@ -124,7 +124,7 @@ jobs: - name: Load priority config id: config run: | - echo "priority=$(jq -c . .github/label-priority.json)" >> $GITHUB_OUTPUT + echo "PRIORITY_JSON=$(jq -c . .github/label-priority.json)" >> $GITHUB_ENV - name: Fetch PR metadata id: pr @@ -192,7 +192,8 @@ jobs: script: | const raw = JSON.parse('${{ steps.ai.outputs.labels }}'); const prNumber = context.payload.pull_request.number; - const config = JSON.parse('${{ steps.config.outputs.priority }}'); + const config = JSON.parse(process.env.PRIORITY_JSON); + console.log("Loaded priorities:", config.priorities); let toApply = []; let toSuggest = [];