-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
24 lines (23 loc) · 1 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: 'Close Milestone'
description: 'Automatically closes milestones linked to pull requests or issues upon closure. Also closes standalone open milestones that are past their due date.'
inputs:
secrets-token:
description: 'The Secrets Github Token used for authenticating Github API calls.'
required: true
runs:
using: "composite"
steps:
- name: Run Close Milestone Script
id: run-close-milestone-script
run: ${{ github.action_path }}/close-milestone.sh
shell: bash
env:
SECRETS_TOKEN: ${{ inputs.secrets-token }}
REPOSITORY: ${{ github.repository }}
EVENT_NAME: ${{ github.event_name }}
PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }}
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
PULL_REQUEST_MILESTONE: ${{ toJSON(github.event.pull_request.milestone) }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_MILESTONE: ${{ toJSON(github.event.issue.milestone) }}