https://github.com/dpguthrie/last-workflow-created-at
https://github.com/dpguthrie/last-workflow-created-at
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dpguthrie/last-workflow-created-at
- Owner: dpguthrie
- License: mit
- Created: 2022-12-05T14:54:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-05T15:23:37.000Z (over 3 years ago)
- Last Synced: 2025-10-12T13:03:07.727Z (9 months ago)
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/MercymeIlya/last-workflow-status/blob/master/LICENSE)
# Credit
This action was taken in its entirety and changed only slightly from [last-workflow-status](https://github.com/MercymeIlya/last-workflow-status) to return the created_at field instead of the status.
# Last workflow created_at
Simple GitHub action to get previous workflow created_at. Was inspired by sending notification after build status changing in
[Travis CI](https://docs.travis-ci.com/user/notifications/#changing-notification-frequency).
```yaml
notifications:
slack:
rooms: slack_room
on_success: change
```
## Inputs:
### `github_token`
* Secret GitHub API token to use for making API requests.
`default: ${{ github.token }}`
## Outputs:
### `last_created_at`
* Created_at value of last workflow.
See https://docs.github.com/en/rest/checks/runs#create-a-check-run--parameters created_at parameter.