Actualiser .forgejo/workflows/actions-demo.yml
All checks were successful
Actions Demo / get-changed-folders (push) Successful in 30s

This commit is contained in:
TheThomaas 2024-06-26 21:11:40 +00:00
parent 4946119fd5
commit 273632e2c1

View file

@ -9,13 +9,17 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: get-changed-folders
id: get_changed
uses: https://github.com/Stockopedia/action-get-changed-files@v2.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ignore: "**/+(.forgejo)"
foldersOnly: false
- name: Echo changed files
run: echo ${{ steps.get_changed.outputs.changed }}
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: https://github.com/tj-actions/changed-files@v44
- 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