Skip to content

Commit bf0adaa

Browse files
ChrisGe4verbanicm
andauthored
Update .github/workflows/centralized-stale.yml
Co-authored-by: Mike Verbanic <5046972+verbanicm@users.noreply.github.com> Signed-off-by: Chris <chris.ge@live.com>
1 parent f7eb013 commit bf0adaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/centralized-stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
GH_TOKEN: '${{ steps.mint-github-token.outputs.token }}'
4444
run: |
4545
# Query GitHub API for active, public, non-forked repositories and force single-line JSON to prevent GITHUB_OUTPUT truncation
46-
REPOS=$(gh api --paginate /orgs/google-github-actions/repos -q '[.[] | select(.archived == false and .private == false and .fork == false) | .name]' | jq -c .)
47-
echo "repos=${REPOS}" >> "$GITHUB_OUTPUT"
46+
REPOS=$(gh api --paginate /orgs/google-github-actions/repos | jq -s 'add | [.[] | select(.archived == false and .private == false and .fork == false) | .name]' -c)
47+
echo "repos=${REPOS}" >> "$GITHUB_OUTPUT"
4848

4949
# Stage 2: Fan out official actions/stale across all discovered repositories
5050
apply-stale-rules:

0 commit comments

Comments
 (0)