diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c209b58..1cd475b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,10 +1,10 @@ name: publish to pypi on: + workflow_dispatch: release: types: [created] - workflow_dispatch: - + jobs: publish: runs-on: ubuntu-latest diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml new file mode 100644 index 0000000..15eb5ce --- /dev/null +++ b/.github/workflows/stale-issues.yml @@ -0,0 +1,18 @@ +name: 'Close stale issues and PRs' +on: + workflow_dispatch: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + days-before-stale: 30 + days-before-close: 5 + exempt-all-pr-milestones: true + exempt-issue-labels: 'todo'