actions-marketplace-validations/Check new commits
Checks if the given branch has new commits since a given time period
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | 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. | yes | ${{ github.token }} |
| seconds | The seconds interval that the action will use to check if there have been new commits. | yes | 86400 |
| branch | 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. | no | — |
Outputs
| name | description |
|---|---|
| has-new-commits | Whether or not new commits have been found for the required time interval as a boolean value (true or false). |
| new-commits-number | The number of new commits found for the given interval. It will be 0 if no new commits could be found. |