forked from fredlemieux/get-PR-latest-commit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
32 lines (28 loc) · 950 Bytes
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: 'Get latest commit on PR'
description: 'An action to get the latest commit on a pull request, and output the information of the latest commit.'
author: 'Bright Ran'
inputs:
repository:
description: 'The name of the repository which the pull request is in. For example, ActionsRML/latest-commit-on-PR'
required: true
default: ${{ github.repository }}
pull_number:
description: 'The number of the pull request.'
required: true
default: ${{ github.event.pull_request.number }}
token:
description: 'Personal access token (PAT) used to authenticate.'
default: ${{ github.token }}
outputs:
latest_commit_sha:
description: 'The commit SHA.'
latest_commit_message:
description: 'The commit message.'
latest_commit_context:
description: 'The path of the JSON file to store the context of the commit.'
runs:
using: 'node12'
main: 'dist/index.js'
branding:
icon: 'filter'
color: 'green'