auto-close-inactive-pr #395
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: auto-close-inactive-pr | |
on: | |
schedule: | |
- cron: "0 3 * * *" | |
workflow_dispatch: | |
concurrency: auto-close-inactive-pr-${{ github.ref }} | |
jobs: | |
auto-close-inactive-pr: | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }} | |
REPO: ${{ github.repository }} | |
name: auto-close-inactive-pr | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Auto close inactive PR | |
run: .github/workflows/bin/auto-close-inactive-pr.sh --github-project-path "${REPO}" --github-token "${GITHUB_TOKEN}" --max-days-of-inactivity 15 | |