Fixed workflow
This commit is contained in:
parent
4e5b4a293f
commit
663ac056b7
94
.github/workflows/v4.yml
vendored
94
.github/workflows/v4.yml
vendored
@ -14,67 +14,48 @@ jobs:
|
|||||||
pre-check:
|
pre-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
pyMetadata: ${{ steps.pyMetadataChangesDetected.outputs.changed }}
|
pyMetadata: ${{ steps.checkAppChanges.outputs.metadata }}
|
||||||
sharedLibrary: ${{ steps.sharedLibraryChangesDetected.outputs.changed }}
|
sharedLibrary: ${{ steps.checkAppChanges.outputs.shared }}
|
||||||
coordinator: ${{ steps.coordinatorChangesDetected.outputs.changed }}
|
coordinator: ${{ steps.checkAppChanges.outputs.coordinator }}
|
||||||
processer: ${{ steps.processerChangesDetected.outputs.changed }}
|
processer: ${{ steps.checkAppChanges.outputs.processer }}
|
||||||
converter: ${{ steps.converterChangesDetected.outputs.changed }}
|
converter: ${{ steps.checkAppChanges.outputs.converter }}
|
||||||
ui: ${{ steps.uiChangesDetected.outputs.changed }}
|
ui: ${{ steps.checkAppChanges.outputs.ui }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Detect if pyMetadata has changed
|
- uses: dorny/paths-filter@v3
|
||||||
id: pyMetadataChangesDetected
|
name: "Detect app changes"
|
||||||
uses: tchupp/actions-detect-directory-changes@v1.0.15
|
id: checkAppChanges
|
||||||
with:
|
with:
|
||||||
included-paths: "apps/pyMetadata/**"
|
filters: |
|
||||||
|
metadata:
|
||||||
- name: Detect if shared library
|
- 'apps/pyMetadata/**'
|
||||||
id: sharedLibraryChangesDetected
|
coordinator:
|
||||||
uses: tchupp/actions-detect-directory-changes@v1.0.15
|
- 'apps/coordinator/**'
|
||||||
with:
|
processer:
|
||||||
included-paths: "shared/**"
|
- 'apps/processer/**'
|
||||||
|
converter:
|
||||||
- name: Detect if coordinator has changed
|
- 'apps/converter/**'
|
||||||
id: coordinatorChangesDetected
|
ui:
|
||||||
uses: tchupp/actions-detect-directory-changes@v1.0.15
|
- 'apps/ui/**'
|
||||||
with:
|
shared:
|
||||||
included-paths: "apps/coordinator/**"
|
- 'shared/**'
|
||||||
|
|
||||||
- name: Detect if processer has changed
|
|
||||||
id: processerChangesDetected
|
|
||||||
uses: tchupp/actions-detect-directory-changes@v1.0.15
|
|
||||||
with:
|
|
||||||
included-paths: "apps/processer/**"
|
|
||||||
|
|
||||||
- name: Detect if converter has changed
|
|
||||||
id: converterChangesDetected
|
|
||||||
uses: tchupp/actions-detect-directory-changes@v1.0.15
|
|
||||||
with:
|
|
||||||
included-paths: "apps/converter/**"
|
|
||||||
|
|
||||||
- name: Detect if ui has changed
|
|
||||||
id: uiChangesDetected
|
|
||||||
uses: tchupp/actions-detect-directory-changes@v1.0.15
|
|
||||||
with:
|
|
||||||
included-paths: "apps/ui/**"
|
|
||||||
|
|
||||||
# Step to print the outputs from "pre-check" job
|
# Step to print the outputs from "pre-check" job
|
||||||
- name: Print Outputs from pre-check job
|
- name: Print Outputs from pre-check job
|
||||||
run: |
|
run: |
|
||||||
echo "Apps\n"
|
echo "Apps\n"
|
||||||
echo "app:pyMetadata: ${{ steps.pyMetadataChangesDetected.outputs.changed }}"
|
echo "app:pyMetadata: ${{ steps.checkAppChanges.outputs.metadata }}"
|
||||||
echo "app:coordinator: ${{ steps.coordinatorChangesDetected.outputs.changed }}"
|
echo "app:coordinator: ${{ steps.checkAppChanges.outputs.coordinator }}"
|
||||||
echo "app:processer: ${{ steps.processerChangesDetected.outputs.changed }}"
|
echo "app:processer: ${{ steps.checkAppChanges.outputs.processer }}"
|
||||||
echo "app:converter: ${{ steps.converterChangesDetected.outputs.changed }}"
|
echo "app:converter: ${{ steps.checkAppChanges.outputs.converter }}"
|
||||||
echo "app:ui: ${{ steps.uiChangesDetected.outputs.changed }}"
|
echo "app:ui: ${{ steps.checkAppChanges.outputs.ui }}"
|
||||||
|
|
||||||
echo "Shared"
|
echo "Shared"
|
||||||
echo "shared: ${{ steps.sharedLibraryChangesDetected.outputs.changed }}"
|
echo "shared: ${{ steps.checkAppChanges.outputs.shared }}"
|
||||||
echo "${{ needs.pre-check.outputs }}"
|
echo "${{ steps.checkAppChanges.outputs }}"
|
||||||
echo "${{ needs.pre-check }}"
|
|
||||||
|
|
||||||
build-shared:
|
build-shared:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -98,7 +79,9 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
build-processer:
|
build-processer:
|
||||||
needs: build-shared
|
needs:
|
||||||
|
- build-shared
|
||||||
|
- pre-check
|
||||||
if: ${{ needs.pre-check.outputs.processer == 'true' || github.event_name == 'workflow_dispatch' || needs.pre-check.outputs.sharedLibrary == 'true' }}
|
if: ${{ needs.pre-check.outputs.processer == 'true' || github.event_name == 'workflow_dispatch' || needs.pre-check.outputs.sharedLibrary == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
#if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
#if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
||||||
@ -155,7 +138,9 @@ jobs:
|
|||||||
bskjon/mediaprocessing-processer:v4-${{ steps.docker-tag.outputs.tag }}
|
bskjon/mediaprocessing-processer:v4-${{ steps.docker-tag.outputs.tag }}
|
||||||
|
|
||||||
build-converter:
|
build-converter:
|
||||||
needs: build-shared
|
needs:
|
||||||
|
- build-shared
|
||||||
|
- pre-check
|
||||||
if: ${{ needs.pre-check.outputs.converter == 'true' || github.event_name == 'workflow_dispatch' || needs.pre-check.outputs.sharedLibrary == 'true' }}
|
if: ${{ needs.pre-check.outputs.converter == 'true' || github.event_name == 'workflow_dispatch' || needs.pre-check.outputs.sharedLibrary == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
#if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
#if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
||||||
@ -213,7 +198,9 @@ jobs:
|
|||||||
bskjon/mediaprocessing-converter:v4-${{ steps.docker-tag.outputs.tag }}
|
bskjon/mediaprocessing-converter:v4-${{ steps.docker-tag.outputs.tag }}
|
||||||
|
|
||||||
build-coordinator:
|
build-coordinator:
|
||||||
needs: build-shared
|
needs:
|
||||||
|
- build-shared
|
||||||
|
- pre-check
|
||||||
if: ${{ needs.pre-check.outputs.coordinator == 'true' || github.event_name == 'workflow_dispatch' || needs.pre-check.outputs.sharedLibrary == 'true' }}
|
if: ${{ needs.pre-check.outputs.coordinator == 'true' || github.event_name == 'workflow_dispatch' || needs.pre-check.outputs.sharedLibrary == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
#if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
#if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
||||||
@ -273,7 +260,8 @@ jobs:
|
|||||||
bskjon/mediaprocessing-coordinator:v4-${{ steps.docker-tag.outputs.tag }}
|
bskjon/mediaprocessing-coordinator:v4-${{ steps.docker-tag.outputs.tag }}
|
||||||
|
|
||||||
build-pymetadata:
|
build-pymetadata:
|
||||||
needs: pre-check
|
needs:
|
||||||
|
- pre-check
|
||||||
if: ${{ needs.pre-check.outputs.pyMetadata == 'true' || github.event_name == 'workflow_dispatch' }}
|
if: ${{ needs.pre-check.outputs.pyMetadata == 'true' || github.event_name == 'workflow_dispatch' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@ -284,7 +272,7 @@ jobs:
|
|||||||
- name: Build pyMetadata module
|
- name: Build pyMetadata module
|
||||||
id: build-pymetadata
|
id: build-pymetadata
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ steps.check-pymetadata.outputs.changed }}" == "true" || "${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
if [[ "${{ needs.pre-check.outputs.pyMetadata }}" == "true" || "${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||||
cd apps/pyMetadata
|
cd apps/pyMetadata
|
||||||
# Add the necessary build steps for your Python module here
|
# Add the necessary build steps for your Python module here
|
||||||
echo "Build completed"
|
echo "Build completed"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user