Skip to content

Commit

Permalink
Fix automated PRs manager workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Feb 26, 2024
1 parent b49d105 commit a5b2e7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/automated-prs-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ jobs:
# list prs that are less than 24h old and exclude prs from forks
prs=$(
dependabot_prs=$(
gh pr list \
--author 'dependabot[bot]' \
--json url,createdAt,headRefName,headRepository,headRepositoryOwner \
-q '.[] | select((.createdAt | fromdateiso8601 > now - 24*60*60) and .headRepositoryOwner.login == "replicatedhq" and .headRepository.name == "troubleshoot")'
)
prs=$(echo "$dependabot_prs" | jq -sc '. | unique')
echo "prs=$prs" >> "$GITHUB_OUTPUT"
process-prs:
Expand Down

0 comments on commit a5b2e7e

Please sign in to comment.