Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 3546f52

Browse files
committed
Automated commit -> added return statement to parser in jatosapi
1 parent f2cb627 commit 3546f52

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,23 @@ jobs:
2929
uses: actions/checkout@v3
3030

3131
- name: Get Changed CSV Files
32-
run: |
33-
#!/bin/bash
32+
run: |
33+
#!/bin/bash
34+
35+
# Get the list of CSV files changed in the last 24 hours
36+
data=$(git log --since="24 hours ago" --name-only --pretty=format: -- '*.csv' | sort | uniq)
3437
35-
# Get the list of CSV files changed in the last 24 hours
36-
data=$(git log --since="24 hours ago" --name-only --pretty=format: -- '*.csv' | sort | uniq)
38+
# Convert the list into a multi-line format
39+
formatted_data=$(echo "$data" | tr ' ' '\n')
3740
38-
# Export the data variable to the environment
39-
echo "data=$data" >> $GITHUB_ENV
41+
# Export the formatted data variable to the environment
42+
echo "data<<EOF" >> $GITHUB_ENV
43+
echo "$formatted_data" >> $GITHUB_ENV
44+
echo "EOF" >> $GITHUB_ENV
4045
41-
# Print the changed CSV files
42-
echo "Changed CSV files in the last 24 hours: $data"
46+
# Print the changed CSV files
47+
echo "Changed CSV files in the last 24 hours:"
48+
echo "$formatted_data"
4349
4450
4551
- name: Install Python Dependencies

0 commit comments

Comments
 (0)