diff --git a/.github/workflows/inactive-issues.yml b/.github/workflows/inactive-issues.yml index bb7a44ab0f..0afe0e5f40 100644 --- a/.github/workflows/inactive-issues.yml +++ b/.github/workflows/inactive-issues.yml @@ -6,10 +6,18 @@ on: - cron: '0 1 * * *' # Allows to run this workflow manually from the Actions tab workflow_dispatch: + # Run when there's a push to a pull request + pull_request: + types: [opened, synchronize, reopened] + paths: + - '.github/scripts/inactive-issues.js' + - '.github/workflows/inactive-issues.yml' jobs: manage-inactive-issues: runs-on: ubuntu-latest + # Only run this workflow for PR #13775 when triggered by a pull_request event + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.number == 13775 }} permissions: issues: write steps: