mirror of
https://github.com/wled/WLED.git
synced 2025-07-14 14:26:33 +00:00
Use JSON for usermods list
This commit is contained in:
parent
0e7d5dd013
commit
04c7eace09
6
.github/workflows/usermods.yml
vendored
6
.github/workflows/usermods.yml
vendored
@ -8,7 +8,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
get_usermod_envs:
|
get_usermod_envs:
|
||||||
name: Gather Environments
|
name: Gather Usermods
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Get default environments
|
- name: Get default environments
|
||||||
id: envs
|
id: envs
|
||||||
run: |
|
run: |
|
||||||
mods=`find usermods/ -name library.json | xargs dirname | xargs -n 1 basename | xargs echo`
|
mods=`find usermods/ -name library.json | xargs dirname | xargs -n 1 basename | jq -R | jq --slurp -c`
|
||||||
echo -n "usermods=\"$mods\"" >> $GITHUB_OUTPUT
|
echo -n "usermods=\"$mods\"" >> $GITHUB_OUTPUT
|
||||||
outputs:
|
outputs:
|
||||||
usermods: ${{ steps.envs.outputs.usermods }}
|
usermods: ${{ steps.envs.outputs.usermods }}
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
environment: [usermod]
|
environment: [usermod]
|
||||||
usermod: ${{ needs.get_usermod_envs.outputs.usermods }}
|
usermod: ${{ fromJSON(needs.get_usermod_envs.outputs.usermods) }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
|
Loading…
x
Reference in New Issue
Block a user