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

28 lines
650 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: true
- 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