Skip to content

Process Issue Expiration #87

Process Issue Expiration

Process Issue Expiration #87

name: Process Issue Expiration
# Run once per day
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}
permissions:
contents: write
id-token: write
issues: write
jobs:
expire:
name: Close Expired Issues
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Get GitHub App Token
id: token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.ISSUEOPS_APP_ID }}
private-key: ${{ secrets.ISSUEOPS_APP_PEM_FILE }}
owner: ${{ github.repository_owner }}
- name: Process IssueOps Request
id: process
uses: githubschool/gh-github-intermediate-issueops@main
with:
expire: true
github_token: ${{ steps.token.outputs.token }}
workspace: ${{ github.workspace }}