Skip to content

Commit

Permalink
compact json array
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Jan 4, 2024
1 parent 2148f66 commit dfd3a98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/automated-prs-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
# list dependabot and automated prs that are less than 24h old
# dependabot_prs=$(gh pr list --label dependabot --json url,headRefName,createdAt -q '.[] | select(.createdAt | fromdateiso8601 > now - 86400)')
# automated_prs=$(gh pr list --label automated-pr --json url,headRefName,createdAt -q '.[] | select(.createdAt | fromdateiso8601 > now - 86400)')
# prs=$(echo "$dependabot_prs" "$automated_prs" | jq -s '. | unique')
dependabot_prs=$(gh pr list --label dependabot --json url,headRefName,createdAt -q '.[] | select(.createdAt | fromdateiso8601 > now - 86400)')
automated_prs=$(gh pr list --label automated-pr --json url,headRefName,createdAt -q '.[] | select(.createdAt | fromdateiso8601 > now - 86400)')
prs=$(echo "$dependabot_prs" "$automated_prs" | jq -sc '. | unique')
echo "prs=$(gh pr list --label dependabot --json url,headRefName,createdAt -q '.[] | select(.createdAt | fromdateiso8601 > now - 86400)')" >> "$GITHUB_OUTPUT"
echo "prs=$prs" >> "$GITHUB_OUTPUT"
process-prs:
needs: list-prs
Expand Down

0 comments on commit dfd3a98

Please sign in to comment.