From 273632e2c13461f1c8eb25ed062a5451ad0e020b Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Wed, 26 Jun 2024 21:11:40 +0000 Subject: [PATCH] Actualiser .forgejo/workflows/actions-demo.yml --- .forgejo/workflows/actions-demo.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/actions-demo.yml b/.forgejo/workflows/actions-demo.yml index 15a9dc9..8b6a5b3 100644 --- a/.forgejo/workflows/actions-demo.yml +++ b/.forgejo/workflows/actions-demo.yml @@ -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 }} - \ No newline at end of file + 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