From 511276518608597518c0246c963ef977e5a5e6c7 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Thu, 2 Nov 2023 10:33:42 +0100 Subject: [PATCH 1/3] chore(smoke): support workflow_dispatch --- .github/workflows/smoke-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 49e4943f3..7a6d00cd1 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -14,7 +14,7 @@ on: jobs: examples: - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_dispatch }} runs-on: macos-latest steps: - name: Checkout From 057e515b34c8cd0781262fdffa32e0662f763a6b Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Thu, 2 Nov 2023 10:34:31 +0100 Subject: [PATCH 2/3] chore(smoke): use manual runs only --- .github/workflows/smoke-test.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 7a6d00cd1..329cc8c61 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -1,20 +1,16 @@ name: smoke-test on: - # Always run smoke tests upon a successful - # "ci" job completion on "main". - workflow_run: - workflows: ['ci'] - branches: [main] - types: [completed] - # Also allow on-demand smoke test runs. - # Useful when testing a particular branch - # for compatibility with the examples. + # # Always run smoke tests upon a successful + # # "ci" job completion on "main". + # workflow_run: + # workflows: ['ci'] + # branches: [main] + # types: [completed] workflow_dispatch: jobs: examples: - if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_dispatch }} runs-on: macos-latest steps: - name: Checkout From 008a8c69610709308fee5226e24f627717882bcb Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Thu, 2 Nov 2023 10:43:04 +0100 Subject: [PATCH 3/3] chore(smoke): support workflow_run and workflow_dispatch --- .github/workflows/smoke-test.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 329cc8c61..e2b429210 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -1,16 +1,17 @@ name: smoke-test on: - # # Always run smoke tests upon a successful - # # "ci" job completion on "main". - # workflow_run: - # workflows: ['ci'] - # branches: [main] - # types: [completed] + # Always run smoke tests upon a successful + # "ci" job completion on "main". + workflow_run: + workflows: ['ci'] + branches: [main] + types: [completed] workflow_dispatch: jobs: examples: + if: ${{ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'workflow_dispatch' }} runs-on: macos-latest steps: - name: Checkout