Skip to content

Commit

Permalink
github/actions: Add an on-merge job to Cornelis Networks workflow
Browse files Browse the repository at this point in the history
Add a second job to the internal Cornelis Networks workflows. This is
triggered by merge events in the cornelisnetworks/libfabric-internal
repository, and skipped otherwise.

Signed-off-by: Jack Morrison <jack.morrison@cornelisnetworks.com>
  • Loading branch information
jack-morrison authored and j-xiong committed Sep 12, 2024
1 parent 6096955 commit 16e34ee
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: 'Cornelis'
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
branches:
- main
paths-ignore:
Expand All @@ -16,5 +21,13 @@ concurrency:
jobs:
opx-ci:
name: OPX CI
if: github.repository == 'cornelisnetworks/libfabric-internal'
if: |
github.repository == 'cornelisnetworks/libfabric-internal' &&
github.event.pull_request.merged != true
uses: cornelisnetworks/libfabric-devel/.github/workflows/cn.yml@master
on-merge:
name: On-Merge
if: |
github.repository == 'cornelisnetworks/libfabric-internal' &&
github.event.pull_request.merged == true
uses: cornelisnetworks/libfabric-devel/.github/workflows/merge.yml@master

0 comments on commit 16e34ee

Please sign in to comment.