From a0ef0f2de5f68a5413f80cc74ba29950c7cade33 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Nov 2024 12:37:28 +0100 Subject: [PATCH] Try to run windows-ci only if travis ok first. --- .github/workflows/gh-travis.yml | 1 + .github/workflows/phan.yml | 1 + .github/workflows/phpstan.yml | 4 ++-- .github/workflows/pre-commit.yml | 1 + .github/workflows/windows-ci.yml | 7 +++++++ 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-travis.yml b/.github/workflows/gh-travis.yml index 30c10765f079b..529e261cf186c 100644 --- a/.github/workflows/gh-travis.yml +++ b/.github/workflows/gh-travis.yml @@ -10,6 +10,7 @@ on: gh_event: required: true type: string + # can run job manually workflow_dispatch: concurrency: diff --git a/.github/workflows/phan.yml b/.github/workflows/phan.yml index 56a33ef76c7e8..66faba3a577c7 100644 --- a/.github/workflows/phan.yml +++ b/.github/workflows/phan.yml @@ -10,6 +10,7 @@ on: gh_event: required: true type: string + # can run job manually workflow_dispatch: concurrency: diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index c638ee83e500a..e1f2749566d55 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -10,11 +10,11 @@ on: gh_event: required: true type: string + # can run job manually workflow_dispatch: concurrency: - group: stan-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref - }} + group: stan-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true env: gh_event: ${{ inputs.gh_event || github.event_name }} diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 8adc5051bc2a6..da71822c32b18 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -8,6 +8,7 @@ on: gh_event: required: true type: string + # can run job manually workflow_dispatch: concurrency: diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index e7d330324dd2a..daa81ada2504e 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -9,7 +9,13 @@ on: gh_event: required: true type: string + # can run job manually workflow_dispatch: + # Run if workflow is Travis is ok only + workflow_run: + workflows: ["Travis"] + types: + - completed concurrency: group: win-ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref @@ -27,6 +33,7 @@ env: GITHUB_JSON: ${{ toJSON(github) }} # Helps in debugging Github Action jobs: win-test: + if: ${{ github.event.workflow_run.conclusion == 'success' }} strategy: matrix: os: [windows-latest]