diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a2c06c4..19f4c331 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,16 +25,14 @@ jobs: with: fetch-depth: 0 - - name: Get list of updated files by the last commit in this branch separated by space - id: updated-files - run: | - echo "files=$(git diff-tree --no-commit-id --name-only -r $(git rev-parse HEAD) | tr '\n' ' ')" >> $GITHUB_OUTPUT + - name: Get changed files + uses: jitterbit/get-changed-files@v1 + id: files - - name: Run renovate-app-version.sh on updated files + - name: Apply config update run: | - IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}" - - for file in "${files[@]}"; do + for changed_file in ${{ steps.files.outputs.all }}; do + echo "Changed file: $changed_file" if [[ $file == *"docker-compose.yml"* ]]; then app_name=$(echo $file | cut -d'/' -f 2) ./.github/workflows/renovate-app-version.sh $app_name @@ -45,7 +43,7 @@ jobs: run: | git config --local user.email "github-actions@users.noreply.github.com" git config --local user.name "github-actions[bot]" - git add apps/*/config.json && git commit -m "Update app version [ready]" --no-verify && git push || echo "No changes to commit" + git add . && git commit -m "Update app version [ready]" --no-verify && git push || echo "No changes to commit" ci: needs: update-config