mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Enhance inactive issues workflow to trigger on pull request events and restrict execution to specific PR number
This commit is contained in:
8
.github/workflows/inactive-issues.yml
vendored
8
.github/workflows/inactive-issues.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user