Skip to content

Commit

Permalink
♻️ Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Jan 17, 2025
1 parent b5debf1 commit 0647bbd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ jobs:
- id: set-matrix
run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
# On push, run all
echo "matrix={\"group\":[\"unit-core\",\"unit-storage\",\"tutorial\",\"guide\",\"biology\",\"faq\",\"storage\",\"cli\",\"curator\"]}" >> $GITHUB_OUTPUT
elif [[ "${{ steps.changes.outputs.curator }}" == "true" ]]; then
# If curator paths changed, include curator
echo "matrix={\"group\":[\"unit-core\",\"unit-storage\",\"tutorial\",\"guide\",\"biology\",\"faq\",\"storage\",\"cli\",\"curator\"]}" >> $GITHUB_OUTPUT
BASE_GROUPS='["unit-core", "unit-storage", "tutorial", "guide", "biology", "faq", "storage", "cli"'
if [[ "${{ github.event_name }}" == "push" || "${{ steps.changes.outputs.curator }}" == "true" ]]; then
GROUPS="$BASE_GROUPS, \"curator\"]"
else
# Otherwise, run all except curator
echo "matrix={\"group\":[\"unit-core\",\"unit-storage\",\"tutorial\",\"guide\",\"biology\",\"faq\",\"storage\",\"cli\"]}" >> $GITHUB_OUTPUT
# Otherwise only run base groups
GROUPS="$BASE_GROUPS]"
fi
echo "matrix={\"group\":$GROUPS}" >> $GITHUB_OUTPUT
test:
needs: pre-filter
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0647bbd

Please sign in to comment.