Skip to content

Commit

Permalink
Wait for checks before release
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <[email protected]>
  • Loading branch information
SRGDamia1 committed Jun 24, 2024
1 parent 322af21 commit 674a84e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/prepare_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 674a84e

Please sign in to comment.