diff --git a/.github/workflows/file-change-detect-dorny.yaml b/.github/workflows/file-change-detect-dorny.yaml index 34eab5e9..27111203 100644 --- a/.github/workflows/file-change-detect-dorny.yaml +++ b/.github/workflows/file-change-detect-dorny.yaml @@ -6,7 +6,7 @@ on: branches: ["main"] jobs: - job: + changed-files: runs-on: ubuntu-24.04 timeout-minutes: 3 steps: diff --git a/.github/workflows/file-change-detect-tj.yaml b/.github/workflows/file-change-detect-tj.yaml index b87350b8..833b1ffb 100644 --- a/.github/workflows/file-change-detect-tj.yaml +++ b/.github/workflows/file-change-detect-tj.yaml @@ -7,7 +7,7 @@ on: branches: ["main"] jobs: - job: + changed-files: runs-on: ubuntu-24.04 timeout-minutes: 3 steps: @@ -43,3 +43,22 @@ jobs: json: "true" - name: Changed file list run: echo "${{ steps.changed-files3.outputs.all_modified_files }}" + + changed-dirs: + runs-on: ubuntu-24.04 + timeout-minutes: 3 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 2 # push required 2 or 0 to detect last commit change + - id: changed-files + uses: tj-actions/changed-files@v45 # this action force fetch base branch and compare. + with: + dir_names: "true" + - name: Changed file list + env: + CHANGED_FILES: ${{ steps.changed-files2.outputs.all_changed_files }} + run: | + for file in ${CHANGED_FILES}; do + echo "$file was changed" + done diff --git a/.github/workflows/file-change-detect-trilom.yaml b/.github/workflows/file-change-detect-trilom.yaml index 13e1c87a..9727f44a 100644 --- a/.github/workflows/file-change-detect-trilom.yaml +++ b/.github/workflows/file-change-detect-trilom.yaml @@ -5,7 +5,7 @@ on: push: branches: ["main"] jobs: - job: + changed-files: runs-on: ubuntu-24.04 timeout-minutes: 3 steps: