Close stale issues #355
This file contains 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: 'Close stale issues' | |
on: | |
schedule: | |
- cron: '0 4 * * *' | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Load token from 1Password | |
id: onepw_secrets | |
uses: 1password/load-secrets-action@v1 | |
with: | |
export-env: true # Export loaded secrets as environment variables | |
env: | |
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
CREDENTIALS: "op://rbiv7rvkkrsdlpcrz3bmv7nmcu/ifkeehu5gzi7wy5ub5qvwkaire/credential" | |
- name: Close stale issues | |
uses: actions/[email protected] | |
with: | |
repo-token: ${{ env.CREDENTIALS }} | |
operations-per-run: 100 | |
days-before-stale: 60 | |
days-before-close: 30 | |
stale-issue-message: 'This discussion has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.' | |
stale-issue-label: 'stale' | |
exempt-pr-labels: 'v3.0' | |
close-issue-message: 'This discussion has been closed due to inactivity. Discussions can always be reopened after they have been closed.' |