test-actions/.forgejo/workflows/actions-demo.yml
TheThomaas 6e947fe878
All checks were successful
Actions Demo / get-changed-folders (push) Successful in 11s
Actualiser .forgejo/workflows/actions-demo.yml
2024-06-26 21:15:07 +00:00

28 lines
652 B
YAML

name: Actions Demo
run-name: Testing out Actions 🚀
on:
push:
branches:
- main
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: ''
- 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