mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-19 17:47:06 +00:00
Update autolabeler to use environment variable for config
This commit is contained in:
parent
a0952e9f69
commit
76dcc45e9f
5
.github/workflows/autolabeler.yml
generated
vendored
5
.github/workflows/autolabeler.yml
generated
vendored
@ -124,7 +124,7 @@ jobs:
|
|||||||
- name: Load priority config
|
- name: Load priority config
|
||||||
id: config
|
id: config
|
||||||
run: |
|
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
|
- name: Fetch PR metadata
|
||||||
id: pr
|
id: pr
|
||||||
@ -192,7 +192,8 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
const raw = JSON.parse('${{ steps.ai.outputs.labels }}');
|
const raw = JSON.parse('${{ steps.ai.outputs.labels }}');
|
||||||
const prNumber = context.payload.pull_request.number;
|
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 toApply = [];
|
||||||
let toSuggest = [];
|
let toSuggest = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user