Skip to content

Commit

Permalink
update on-success/on-failure logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Davknapp committed Sep 24, 2024
1 parent 8408e10 commit 2d1d070
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_cmake_tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ on:

jobs:
on-success:
if: (github.event_name == 'schedule' && github.repository == 'DLR-AMR/t8code') || (github.event_name != 'schedule')
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-20.04
container: dlramr/t8code-ubuntu:t8-dependencies
timeout-minutes: 90
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create_from_cmake_tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ on:
branches:
- main
- develop
workflow_dispatch:
workflow_run:
workflows: [Build tarball using CMake]
types: [completed]
workflow_dispatch:

jobs:
on-success:
if: (github.event_name == 'schedule' && github.repository == 'DLR-AMR/t8code') || (github.event_name != 'schedule')
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-20.04
container: dlramr/t8code-ubuntu:t8-dependencies
timeout-minutes: 90
Expand Down

0 comments on commit 2d1d070

Please sign in to comment.