Skip to content

Commit

Permalink
Use JSON for usermods list
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Jan 22, 2025
1 parent 0e7d5dd commit 04c7eac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/usermods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:

get_usermod_envs:
name: Gather Environments
name: Gather Usermods
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Get default environments
id: envs
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
outputs:
usermods: ${{ steps.envs.outputs.usermods }}
Expand All @@ -35,7 +35,7 @@ jobs:
fail-fast: false
matrix:
environment: [usermod]
usermod: ${{ needs.get_usermod_envs.outputs.usermods }}
usermod: ${{ fromJSON(needs.get_usermod_envs.outputs.usermods) }}
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
Expand Down

0 comments on commit 04c7eac

Please sign in to comment.