Skip to content

Commit

Permalink
Try to run windows-ci only if travis ok first.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 13, 2024
1 parent 6996136 commit a0ef0f2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gh-travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
gh_event:
required: true
type: string
# can run job manually
workflow_dispatch:

concurrency:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/phan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
gh_event:
required: true
type: string
# can run job manually
workflow_dispatch:

concurrency:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
gh_event:
required: true
type: string
# can run job manually
workflow_dispatch:

concurrency:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down

0 comments on commit a0ef0f2

Please sign in to comment.