Fix automated PRs manager workflow (#1489)

* Fix automated PRs manager workflow
This commit is contained in:
Salah Al Saleh
2024-02-26 14:30:21 -08:00
committed by GitHub
parent b49d1050c9
commit 8132936e3e
3 changed files with 35 additions and 36 deletions

View File

@@ -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: