-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
33 lines (33 loc) · 1.18 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
name: 'Check new commits'
description: 'Checks if the given branch has new commits since a given time period'
inputs:
token:
description: >
Access token used to access the GitHub API.
It is recommended to create a Personal Access Token with a limited access to repositories in order for this to work.
required: true
default: ${{ github.token }}
seconds:
description: >
The seconds interval that the action will use to check if there have been new commits.
required: true
default: '86400' # One day
branch:
description: >
The branch to check for new commits.
When checking out the repository that triggered a workflow, this defaults to the reference or SHA for that event.
Otherwise, uses the default branch.
required: false
outputs:
has-new-commits:
description: >
Whether or not new commits have been found for the required time interval as a boolean value (true or false).
new-commits-number:
description: >
The number of new commits found for the given interval. It will be 0 if no new commits could be found.
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'git-branch'
color: 'orange'