Skip to content

Commit

Permalink
Removed Dupes
Browse files Browse the repository at this point in the history
  • Loading branch information
miloswrath committed Oct 1, 2024
1 parent cf83c8d commit 43fd491
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 43fd491

Please sign in to comment.