From 48b5eddd79b0aec47559397c85dc673baae9252e Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 2 Feb 2024 14:29:58 +0000 Subject: [PATCH] Add waits for post-release steps for improved visibility (#26958) --- .github/workflows/release.yml | 35 +++++++++++++-------- .github/workflows/release_prepare.yml | 44 +++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5639629e67..ca0f8c1f9c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,16 +10,6 @@ on: options: - rc - final - matrix-react-sdk: - description: React SDK version to use (current|X.Y.Z) - required: false - default: current - type: string - matrix-js-sdk: - description: JS SDK version to use (current|X.Y.Z) - required: false - default: current - type: string concurrency: ${{ github.workflow }} jobs: release: @@ -34,6 +24,25 @@ jobs: gpg-fingerprint: ${{ vars.GPG_FINGERPRINT }} asset-path: dist/*.tar.gz expected-asset-count: 3 - dependencies: | - matrix-react-sdk=${{ inputs.matrix-react-sdk }} - matrix-js-sdk=${{ inputs.matrix-js-sdk }} + + check: + name: Post release checks + runs-on: ubuntu-latest + steps: + - name: Wait for dockerhub + uses: t3chguy/wait-on-check-action@18541021811b56544d90e0f073401c2b99e249d6 # fork + with: + ref: master + repo-token: ${{ secrets.GITHUB_TOKEN }} + wait-interval: 10 + check-name: "Docker Buildx (vanilla)" + allowed-conclusions: success + + - name: Wait for debian package + uses: t3chguy/wait-on-check-action@18541021811b56544d90e0f073401c2b99e249d6 # fork + with: + ref: master + repo-token: ${{ secrets.GITHUB_TOKEN }} + wait-interval: 10 + check-name: Build package + allowed-conclusions: success diff --git a/.github/workflows/release_prepare.yml b/.github/workflows/release_prepare.yml index 15252260ab..3bddad4d04 100644 --- a/.github/workflows/release_prepare.yml +++ b/.github/workflows/release_prepare.yml @@ -78,3 +78,47 @@ jobs: - name: Push staging run: for REPO in $REPOS; do [ -d "$REPO" ] && git -C "$REPO" push origin staging; done + + - name: Wait for matrix-js-sdk draft + if: inputs.matrix-js-sdk + uses: t3chguy/wait-on-check-action@18541021811b56544d90e0f073401c2b99e249d6 # fork + with: + ref: staging + repo: matrix-org/matrix-js-sdk + repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }} + wait-interval: 10 + check-name: draft + allowed-conclusions: success + + - name: Wait for matrix-react-sdk draft + if: inputs.matrix-react-sdk + uses: t3chguy/wait-on-check-action@18541021811b56544d90e0f073401c2b99e249d6 # fork + with: + ref: staging + repo: matrix-org/matrix-react-sdk + repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }} + wait-interval: 10 + check-name: draft + allowed-conclusions: success + + - name: Wait for element-web draft + if: inputs.element-web + uses: t3chguy/wait-on-check-action@18541021811b56544d90e0f073401c2b99e249d6 # fork + with: + ref: staging + repo: element-hq/element-web + repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }} + wait-interval: 10 + check-name: draft + allowed-conclusions: success + + - name: Wait for element-desktop draft + if: inputs.element-desktop + uses: t3chguy/wait-on-check-action@18541021811b56544d90e0f073401c2b99e249d6 # fork + with: + ref: staging + repo: element-hq/element-desktop + repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }} + wait-interval: 10 + check-name: draft + allowed-conclusions: success