Enhance inactive issues workflow to trigger on pull request events and restrict execution to specific PR number

This commit is contained in:
italo jose
2025-05-26 17:25:55 -03:00
committed by Italo José
parent 39e9814832
commit 4e91c0e6f4

View File

@@ -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: