Add stale repos action #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Detect Inactive Members | |
| "on": | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - get_stale # for testing only - remove! | |
| schedule: | |
| - cron: "3 2 1 * *" | |
| jobs: | |
| check-inactive-members: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.0' # Use appropriate Ruby version | |
| - name: Install dependencies | |
| run: | | |
| gem install octokit dotenv | |
| - name: Run inactive members script | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| ORG_NAME: "your-org-name" # Replace with your GitHub organization name | |
| run: | | |
| ruby path/to/find-inactive-members.rb |