All checks were successful
Actions Demo / get-changed-folders (push) Successful in 11s
32 lines
726 B
YAML
32 lines
726 B
YAML
name: Actions Demo
|
|
run-name: Testing out Actions 🚀
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- "**/.forgejo"
|
|
|
|
jobs:
|
|
get-changed-folders:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: https://github.com/tj-actions/changed-files@v44
|
|
with:
|
|
dir_names: true
|
|
dir_names_max_depth: '1'
|
|
|
|
- name: List all changed files
|
|
env:
|
|
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
|
run: |
|
|
for file in ${ALL_CHANGED_FILES}; do
|
|
echo "$file was changed"
|
|
done
|