diff --git a/.github/workflows/check-hackage-matrix.yml b/.github/workflows/check-hackage-matrix.yml deleted file mode 100644 index 6ffd1da..0000000 --- a/.github/workflows/check-hackage-matrix.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Check Hackage Matrix - -on: - # Run once a month, to detect build failures reported on matrix.hackage.haskell.org - schedule: - - cron: '0 0 1 * *' - - # To test this GitHub Action, uncomment this block and open a PR; then comment - # it out again before merging the PR. - #pull_request: - # types: [opened, synchronize] - -jobs: - check-hackage-matrix: - name: Check Hackage Matrix - runs-on: ubuntu-latest - - steps: - - name: Download Report - run: | - PACKAGE_NAME="hint" - - echo "checking https://matrix.hackage.haskell.org/#/package/$PACKAGE_NAME/ for failures..." - REPORTS="$(curl https://matrix.hackage.haskell.org/api/v2/packages/$PACKAGE_NAME/reports)" - REPORT_ID="$(echo "$REPORTS" | tr -d '[]' | tr ',' '\n' | tail -n 1)" - REPORT="$(curl "https://matrix.hackage.haskell.org/api/v2/packages/$PACKAGE_NAME/reports/$REPORT_ID")" - if echo "$REPORT" | grep '"bfail"' > /dev/null; then - echo "Build failures are reported on https://matrix.hackage.haskell.org/#/package/$PACKAGE_NAME/" 1>&2 - false - else - echo "All good." - true - fi