1
0
Fork 0
mirror of https://github.com/kou029w/zenn.dev.git synced 2025-01-18 16:07:59 +00:00
zenn.dev/.github/workflows/stale.yml

19 lines
572 B
YAML

name: stale
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * MON"
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
stale-issue-message: このIssueは最終更新日から365日以上経過しています。
days-before-stale: 365
- name: Reactivation
run: |
gh workflow disable --repo "${GITHUB_REPOSITORY}" "${GITHUB_WORKFLOW}"
gh workflow enable --repo "${GITHUB_REPOSITORY}" "${GITHUB_WORKFLOW}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}