Skip to content

Commit

Permalink
Rewrite some commands to avoid string nightmares maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
Draga Doncila committed Jan 17, 2025
1 parent ecd2e57 commit e32a75d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test_all_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- id: plugin_names
run: echo "::set-output name=plugins::$(curl -s https://npe2api.vercel.app/api/plugins | jq -c 'keys' | jq -r '.[]' | shuf -n 10 | jq -R -s 'split(\"\\n\") | map(select(. != \"\"))')"
run: |
set -eux
DATA=$(echo $(curl -s https://npe2api.vercel.app/api/plugins | jq -c 'keys' | jq -r '.[]' | shuf -n 256 | jq -R -s 'split("\n") | map(select(. != ""))'))
echo "plugins=$DATA" >> "$GITHUB_OUTPUT"
outputs:
plugins: ${{ steps.plugin_names.outputs.plugins }}

Expand Down

0 comments on commit e32a75d

Please sign in to comment.