From 43fd491c7cb66a136443d12dcff57bae6e253bca Mon Sep 17 00:00:00 2001 From: zjgilliam Date: Tue, 1 Oct 2024 10:56:45 -0500 Subject: [PATCH] Removed Dupes --- .github/workflows/main.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8781acb..4194838 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,17 +20,19 @@ jobs: runs-on: self-hosted outputs: data: ${{ steps.set_vars.outputs.json }} - steps: - name: Checkout Code uses: actions/checkout@v3 - + with: + fetch-depth: 0 - name: Get Changed CSV Files run: | #!/bin/bash + + # Get the list of CSV files changed in the last 24 hours - data=$(git log --since="24 hours ago" --name-only --diff-filter=A --pretty=format: -- '*.csv' | sort | uniq) + 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')