Skip to content

Instantly share code, notes, and snippets.

@kuroppe1819
Created September 30, 2023 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuroppe1819/c0d9f8b55e070635cfc1501812cfcf03 to your computer and use it in GitHub Desktop.
Save kuroppe1819/c0d9f8b55e070635cfc1501812cfcf03 to your computer and use it in GitHub Desktop.
Close all issues workflow
name: Close all issues
on:
schedule:
- cron: "0 */3 * * *" # 3時間おきに実行する
jobs:
close-all-issues:
runs-on: ubuntu-latest
steps:
- name: Create GitHub App Token
id: generate_token
uses: actions/create-github-app-token@v1.2.1
with:
app_id: ${{ secrets.GITHUB_APP_ID }}
private_key: ${{ secrets.GITHUB_PROJECTS_PRIVATE_KEY }}
- uses: actions/checkout@v3
- name: Close all issues
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
shell: bash
run: ./close-all-done-or-canceled-status-issues.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment