Skip to content

Process Issue Expiration #9

Process Issue Expiration

Process Issue Expiration #9

name: Process Issue Expiration
# Run once per day, or when invoked manually.
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
jobs:
check:
name: Check Expiring Reservations
runs-on: ubuntu-latest
steps:
# This is required to ensure the issue form template is included in the
# workspace. However, we don't need to install any dependencies since we
# aren't running validation on closed issues.
- name: Checkout
id: checkout
uses: actions/checkout@v4
# GitHub App authentication is required if you want to interact with any
# resources outside the scope of the repository this workflow runs in.
- name: Get GitHub App Token
id: token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.ISSUEOPS_APP_ID }}
private-key: ${{ secrets.ISSUEOPS_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
# Process the expired reservations.
- name: Process Reservation Expiration
id: process
# When using custom actions, make sure to pin the version to a specific
# commit or release tag!
uses: issue-ops/demo-reservation-action@main
with:
action: expire
github_token: ${{ steps.token.outputs.token }}
issue_template_path: .github/ISSUE_TEMPLATE/reservation.yml
project_number: 3