mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 18:29:53 +00:00
Fix automated PRs manager workflow (#1489)
* Fix automated PRs manager workflow
This commit is contained in:
3
.github/workflows/automated-prs-manager.yaml
vendored
3
.github/workflows/automated-prs-manager.yaml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user