generated from actions-go/go-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
50 lines (50 loc) · 2.12 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: 'modified-file'
description: |
Sets outputs wheter and which matching files has been modified since between 2 commits
It is the equivalent of `git log base..head`.
It uses the github API to compare both commits: https://developer.github.com/v3/repos/commits/#compare-two-commits
author: 'Thibault Jamet'
branding:
icon: file-plus
color: green
inputs:
head:
description: |
The commit to be compared to base.
This parameter is required when running on an event different from push or pullrequest.
When handling a pullrequest event, it defaults to the pullrequest head sha.
When handling a push event, it defauts to the `After` field of the push event:
https://developer.github.com/v3/activity/events/types/#pushevent
base:
description: |
The commit head is compared to.
This parameter is required when running on an event different from push or pullrequest.
When handling a pullrequest event, it defaults to the pullrequest base sha.
When handling a push event, it defauts to the `Before` field of the push event:
https://developer.github.com/v3/activity/events/types/#pushevent
pattern:
decription: |
The pattern to which modified paths are matched.
required: true
use-glob:
description: |
Whether to use the simplee glob syntax, extended with the `**` pattern matching
paths with path separator
default: true
token:
description: >
Auth token used to fetch the repository. The token is stored in the local
git config, which enables your scripts to run authenticated git commands.
The post-job step removes the token from the git config. [Learn more about
creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
default: ${{ github.token }}
outputs:
modified:
description: |
true when any modified file between base and head matches pattern
modified-files:
description: |
a json encoded list of all files modified between base and head
runs:
using: 'node12'
main: 'dist/index.js'