From 736b2bb8478b39a8a103276bd218fed1acfb3d89 Mon Sep 17 00:00:00 2001 From: zjgilliam Date: Mon, 23 Sep 2024 10:22:29 -0500 Subject: [PATCH] Automated commit -> added return statement to parser in jatosapi --- .github/workflows/main.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70b1ce1..71bf8e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,17 +29,23 @@ jobs: uses: actions/checkout@v3 - name: Get Changed CSV Files - run: | - #!/bin/bash +run: | + #!/bin/bash + + # Get the list of CSV files changed in the last 24 hours + data=$(git log --since="24 hours ago" --name-only --pretty=format: -- '*.csv' | sort | uniq) - # Get the list of CSV files changed in the last 24 hours - data=$(git log --since="24 hours ago" --name-only --pretty=format: -- '*.csv' | sort | uniq) + # Convert the list into a multi-line format + formatted_data=$(echo "$data" | tr ' ' '\n') - # Export the data variable to the environment - echo "data=$data" >> $GITHUB_ENV + # Export the formatted data variable to the environment + echo "data<> $GITHUB_ENV + echo "$formatted_data" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV - # Print the changed CSV files - echo "Changed CSV files in the last 24 hours: $data" + # Print the changed CSV files + echo "Changed CSV files in the last 24 hours:" + echo "$formatted_data" - name: Install Python Dependencies