From 4b79f1d86b8a999166a2728a439d260c7ce54800 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Thu, 15 Dec 2022 19:36:54 +0100 Subject: [PATCH] scheduled: cleanup build --- .github/workflows/scheduled.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index 4cb5b95f04a..aed76703855 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -17,20 +17,23 @@ jobs: runs-on: ubuntu-22.04 outputs: json: ${{ steps.matrix.outputs.json }} + env: + TEST_COUNT: 20 + TAP: homebrew/core steps: - name: Set up Homebrew id: set-up-homebrew uses: Homebrew/actions/setup-homebrew@master - id: matrix run: | - formula=$(find $(brew --repo homebrew/core)/Formula | shuf -n10 | xargs -I{} basename {} .rb) + formula=$(find $(brew --repo "${TAP}")/Formula | shuf -n "${TEST_COUNT}" | xargs -I{} basename {} .rb) json=$(brew info --json=v2 $formula | jq --compact-output '[.formulae[].name]') echo "json=${json}" >> $GITHUB_OUTPUT - echo "json=${json}" audit_online: # if: startsWith( github.repository, 'Homebrew/' ) runs-on: ubuntu-22.04 needs: create_matrix + name: "Online check: ${{ matrix.formula }}" strategy: matrix: formula: ${{ fromJson(needs.create_matrix.outputs.json) }}