From 0cc6a1bd0b97e3d8d28513763f42988ce4c4463d Mon Sep 17 00:00:00 2001 From: "Sean T. Allen" Date: Wed, 31 Jan 2024 02:03:15 +0000 Subject: [PATCH] Send event to corral and ponyup on arm64 macos nightlies being released --- .../cloudsmith-package-sychronised.yml | 36 +++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cloudsmith-package-sychronised.yml b/.github/workflows/cloudsmith-package-sychronised.yml index 9319a01ac1..a1858b7955 100644 --- a/.github/workflows/cloudsmith-package-sychronised.yml +++ b/.github/workflows/cloudsmith-package-sychronised.yml @@ -330,11 +330,11 @@ jobs: topic: ${{ github.repository }} scheduled job failure content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed. - send-macos-nightly-release-event: + send-x86-64-macos-nightly-release-event: if: | github.event.client_payload.data.repository == 'nightlies' && github.event.client_payload.data.name == 'ponyc-x86-64-apple-darwin.tar.gz' - name: Send macos nightly release event + name: Send x86-64 macos nightly release event runs-on: ubuntu-latest strategy: matrix: @@ -362,6 +362,38 @@ jobs: topic: ${{ github.repository }} scheduled job failure content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed. + send-arm64-macos-nightly-release-event: + if: | + github.event.client_payload.data.repository == 'nightlies' && + github.event.client_payload.data.name == 'ponyc-arm64-apple-darwin.tar.gz' + name: Send arm64 macos nightly release event + runs-on: ubuntu-latest + strategy: + matrix: + repo: + - ponylang/corral + - ponylang/ponyup + steps: + - name: Send + # v2.1.1 + uses: peter-evans/repository-dispatch@26b39ed245ab8f31526069329e112ab2fb224588 + with: + token: ${{ secrets.PONYLANG_MAIN_API_TOKEN }} + repository: ${{ matrix.repo }} + event-type: ponyc-arm64-macos-nightly-released + client-payload: '{"version": "${{ github.event.client_payload.data.version }}"}' + - name: Alert on failure + if: ${{ failure() }} + uses: zulip/github-actions-zulip/send-message@b62d5a0e48a4d984ea4fce5dd65ba691963d4db4 + with: + api-key: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_API_KEY }} + email: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_EMAIL }} + organization-url: 'https://ponylang.zulipchat.com/' + to: notifications + type: stream + topic: ${{ github.repository }} scheduled job failure + content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed. + send-musl-nightly-release-event: needs: [build-latest-musl-docker-image]