Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorHalf committed Oct 18, 2024
1 parent 687e4b0 commit 96b398f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/check-stale-branches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
echo "branches=$(echo $branches_json | jq -c)" >> $GITHUB_OUTPUT

- name: Test Fetch Commit Dates for All Branches
# env:
# stale-branch-threshold: "3m"
run: |
for branch in $(jq -r '.[]' <<< '${{ steps.branches.outputs.branches }}'); do
Expand All @@ -57,6 +59,10 @@ jobs:
/repos/dvsa/cvs-svc-app-logs/commits?sha="$branch" \
--jq '.[].commit.committer.date' 2>/dev/null)
for commit_date in $commit_dates; do
[ $($commit_date | date) < $(date -v-3m) ] && echo "New Commit"
done
# Print commit dates
echo "Commit dates for branch $branch:"
echo "$commit_dates"
Expand Down

0 comments on commit 96b398f

Please sign in to comment.