From 517b93cc1df2b4b1bbdd02b27662f312024fbc39 Mon Sep 17 00:00:00 2001 From: Hendre Janse van Rensburg Date: Mon, 19 Aug 2024 14:43:22 +0200 Subject: [PATCH 1/4] remove the git fetch command --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2a4e7804..3caf6af9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: - name: Identify and Copy Changed .json and .xml Files run: | mkdir -p $PATH_TO_EXAMPLES # Create a temp folder - git fetch origin main:main + # git fetch origin main:main git diff --name-only main | grep -E '\.(json|xml)$' | xargs -I {} cp {} $PATH_TO_EXAMPLES/ echo "Number of changed files to validate: " && ls -1 $PATH_TO_EXAMPLES | wc -l From 05c894bfb4070e283e413823e9eeb14c6dd03abc Mon Sep 17 00:00:00 2001 From: Hendre Janse van Rensburg Date: Mon, 19 Aug 2024 14:46:26 +0200 Subject: [PATCH 2/4] test the negative example case --- .../e98da709-d9f8-494d-87b0-a59a0f471924_01.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Negative-Examples/2_01.07.2023/KBV_PR_ERP_Bundle/e98da709-d9f8-494d-87b0-a59a0f471924_01.xml b/Negative-Examples/2_01.07.2023/KBV_PR_ERP_Bundle/e98da709-d9f8-494d-87b0-a59a0f471924_01.xml index 24c44865..01c3c119 100644 --- a/Negative-Examples/2_01.07.2023/KBV_PR_ERP_Bundle/e98da709-d9f8-494d-87b0-a59a0f471924_01.xml +++ b/Negative-Examples/2_01.07.2023/KBV_PR_ERP_Bundle/e98da709-d9f8-494d-87b0-a59a0f471924_01.xml @@ -1,5 +1,5 @@ - + Date: Mon, 19 Aug 2024 14:50:11 +0200 Subject: [PATCH 3/4] modify git diff command --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3caf6af9..daa86644 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: run: | mkdir -p $PATH_TO_EXAMPLES # Create a temp folder # git fetch origin main:main - git diff --name-only main | grep -E '\.(json|xml)$' | xargs -I {} cp {} $PATH_TO_EXAMPLES/ + git diff --name-only origin/main | grep -E '\.(json|xml)$' | xargs -I {} cp {} $PATH_TO_EXAMPLES/ echo "Number of changed files to validate: " && ls -1 $PATH_TO_EXAMPLES | wc -l # Install Java runtime (only needed if you want to run the offical HL7 Java validator) From 88cc4a39b8a2c2eba6d5d3df392558f4409d263a Mon Sep 17 00:00:00 2001 From: Hendre Janse van Rensburg Date: Mon, 19 Aug 2024 15:06:04 +0200 Subject: [PATCH 4/4] remove the negative test case --- .../e98da709-d9f8-494d-87b0-a59a0f471924_01.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Negative-Examples/2_01.07.2023/KBV_PR_ERP_Bundle/e98da709-d9f8-494d-87b0-a59a0f471924_01.xml b/Negative-Examples/2_01.07.2023/KBV_PR_ERP_Bundle/e98da709-d9f8-494d-87b0-a59a0f471924_01.xml index 01c3c119..24c44865 100644 --- a/Negative-Examples/2_01.07.2023/KBV_PR_ERP_Bundle/e98da709-d9f8-494d-87b0-a59a0f471924_01.xml +++ b/Negative-Examples/2_01.07.2023/KBV_PR_ERP_Bundle/e98da709-d9f8-494d-87b0-a59a0f471924_01.xml @@ -1,5 +1,5 @@ - +