From 1df7366b5046379de6cd4813e8aa8411e0e7d7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= <91831478+lemeurherve@users.noreply.github.com> Date: Thu, 10 Aug 2023 19:05:03 +0200 Subject: [PATCH 1/2] Update check-chart-versions-bump.yml --- .github/workflows/check-chart-versions-bump.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-chart-versions-bump.yml b/.github/workflows/check-chart-versions-bump.yml index 115051856..bc772c3f4 100644 --- a/.github/workflows/check-chart-versions-bump.yml +++ b/.github/workflows/check-chart-versions-bump.yml @@ -11,8 +11,11 @@ jobs: name: List modified folders if: github.ref != 'refs/heads/main' run: | + ls ${{ github.workspace }} # Get the list of modified files and folders - git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changes.txt + # git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changes.txt + git diff --name-only ${{ github.event.after }} ${{ github.event.before }} > changes.txt + # Extract the unique folder paths awk -F/ '{print $1}' changes.txt | sort --unique > modified_folders.txt From 716280e46d92f3c36c3f5381d7dbe078966797cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= <91831478+lemeurherve@users.noreply.github.com> Date: Thu, 10 Aug 2023 19:06:24 +0200 Subject: [PATCH 2/2] cat --- .github/workflows/check-chart-versions-bump.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/check-chart-versions-bump.yml b/.github/workflows/check-chart-versions-bump.yml index bc772c3f4..bd0f66400 100644 --- a/.github/workflows/check-chart-versions-bump.yml +++ b/.github/workflows/check-chart-versions-bump.yml @@ -11,11 +11,14 @@ jobs: name: List modified folders if: github.ref != 'refs/heads/main' run: | + echo "ls workspace" ls ${{ github.workspace }} # Get the list of modified files and folders # git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changes.txt git diff --name-only ${{ github.event.after }} ${{ github.event.before }} > changes.txt + echo "cat changes.txt" + cat changes.txt # Extract the unique folder paths awk -F/ '{print $1}' changes.txt | sort --unique > modified_folders.txt