diff --git a/.github/workflows/prepare_release.yaml b/.github/workflows/prepare_release.yaml index 77f6419..8e073d7 100644 --- a/.github/workflows/prepare_release.yaml +++ b/.github/workflows/prepare_release.yaml @@ -13,8 +13,31 @@ env: PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} jobs: + wait_for_checks: + strategy: + matrix: + req_workflow: + [ + verify_library_structure.yaml, + build_examples.yaml, + build_documentation.yaml, + ] + name: Wait for Checks to complete + runs-on: ubuntu-latest + steps: + - name: Wait on Workflow + uses: ArcticLampyrid/action-wait-for-workflow@v1 + with: + workflows: ${{ matrix.req_workflow }} + sha: ${{ github.sha || github.event.pull_request.head.sha || github.event.pull_request.head.ref }} # optional + allowed-conclusions: | + success + cancelled + skipped + release: name: Prepare a new release + needs: [wait_for_checks] if: ${{ ! contains(github.event.head_commit.message, 'ci skip') }} uses: EnviroDIY/workflows/.github/workflows/prepare_release.yaml@main secrets: inherit