Skip to content

Commit

Permalink
chore: changed dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Dec 12, 2024
1 parent 1392e45 commit a69aa9d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/file-change-detect-dorny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches: ["main"]

jobs:
job:
changed-files:
runs-on: ubuntu-24.04
timeout-minutes: 3
steps:
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/file-change-detect-tj.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: ["main"]

jobs:
job:
changed-files:
runs-on: ubuntu-24.04
timeout-minutes: 3
steps:
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/file-change-detect-trilom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:
branches: ["main"]
jobs:
job:
changed-files:
runs-on: ubuntu-24.04
timeout-minutes: 3
steps:
Expand Down

0 comments on commit a69aa9d

Please sign in to comment.