Skip to content

[IMP] initial commit #2

[IMP] initial commit

[IMP] initial commit #2

name: Detect and Build Changed Directories
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
packages: write
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
detect-changes:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.changed-files.outputs.all_changed_files }}
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v47
with:
files: |
**/Dockerfile
**/versions.yaml
dir_names: true
dir_names_max_depth: 1
dir_names_exclude_current_dir: true
matrix: true
- name: List all changed directories
run: echo '${{ steps.changed-files.outputs.all_changed_files }}'
build:
needs: detect-changes
if: needs.detect-changes.outputs.changed-dirs != '[]'
strategy:
matrix:
directory: ${{ fromJson(needs.detect-changes.outputs.matrix) }}
uses: ./.github/workflows/build-image.yml

Check failure on line 50 in .github/workflows/detect-changes.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/detect-changes.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/detect-changes.yaml" -> "./.github/workflows/build-image.yml" : failed to fetch workflow: workflow was not found.
with:
directory: ${{ matrix.directory }}
secrets: inherit