Skip to content

Commit

Permalink
chore(ci): make packages array unique
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd committed Dec 16, 2020
1 parent 3e3addb commit b6be1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: echo "::set-output name=changed-directories::$(echo ${{ toJson(steps.files.outputs.all) }} | jq -cM 'map(split("/")) | map(.[0])')"
if: steps.files.outputs.all
- id: set-plugins
run: echo "::set-output name=plugins::$(echo $(jq -cM .packages lerna.json) ${{ toJson(steps['set-changed-directories'].outputs['changed-directories']) }} | jq -cM --slurp '[.[0][] as $x | .[1][] | select($x == .)]')"
run: echo "::set-output name=plugins::$(echo $(jq -cM .packages lerna.json) ${{ toJson(steps['set-changed-directories'].outputs['changed-directories']) }} | jq -cM --slurp '[.[0][] as $x | .[1][] | select($x == .)] | unique')"
lint:
runs-on: macOS
timeout-minutes: 30
Expand Down

0 comments on commit b6be1e1

Please sign in to comment.