Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: openMINDS_dev_build_pipeline
on:
push:
branches:
- development
- pipeline
workflow_dispatch: # This triggers the workflow when a webhook is received
inputs:
Expand All @@ -18,7 +19,26 @@ on:


jobs:
check_vocab:
runs-on: ubuntu-latest
outputs:
vocab_changed: ${{ steps.filter.outputs.vocab }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
if: github.ref == 'refs/heads/development'
with:
filters: |
vocab:
- 'vocab/**'

build:
needs: check_vocab
if: |
github.ref == 'refs/heads/pipeline' ||
github.event_name == 'workflow_dispatch' ||
(github.ref == 'refs/heads/development' && needs.check_vocab.outputs.vocab_changed == 'true' && github.actor != 'github-actions[bot]')
runs-on: ubuntu-latest
steps:

Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: openMINDS_build_pipeline
on:
push:
branches:
- main
- pipeline
workflow_dispatch: # This triggers the workflow when a webhook is received
inputs:
Expand All @@ -18,7 +19,26 @@ on:


jobs:
check_vocab:
runs-on: ubuntu-latest
outputs:
vocab_changed: ${{ steps.filter.outputs.vocab }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
if: github.ref == 'refs/heads/main'
with:
filters: |
vocab:
- 'vocab/**'

build:
needs: check_vocab
if: |
github.ref == 'refs/heads/pipeline' ||
github.event_name == 'workflow_dispatch' ||
(github.ref == 'refs/heads/main' && needs.check_vocab.outputs.vocab_changed == 'true' && github.actor != 'github-actions[bot]')
runs-on: ubuntu-latest
steps:

Expand Down