Skip to content

Commit

Permalink
Update stale_repos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpaul committed Feb 22, 2024
1 parent 40736f2 commit b457334
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/stale_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,33 @@ jobs:
name: stale repo identifier
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

steps:
- name: Run stale_repos tool
uses: github/stale-repos@v1
env:
GH_TOKEN: ${{ secrets.GH_PAT_REPO }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ORGANIZATION: 10up
EXEMPT_TOPICS: "keep,template"
INACTIVE_DAYS: 365
ACTIVITY_METHOD: "pushed"

# This next step updates an existing issue. If you want a new issue every time, remove this step and remove the `issue-number: ${{ env.issue_number }}` line below.
- name: Check for the stale report issue
run: |
ISSUE_NUMBER=$(gh search issues "Stale repository report" --match title --json number --jq ".[0].number")
echo "issue_number=$ISSUE_NUMBER" >> "$GITHUB_ENV"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create issue from STALE_REPOS.md
uses: peter-evans/create-issue-from-file@v5
with:
issue-number: ${{ env.issue_number }}
title: Stale repository report
content-filepath: ./STALE_REPOS.md
assignees: jeffpaul
token: ${{ secrets.GH_PAT_REPO }}
issue-number: 33
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b457334

Please sign in to comment.