https://github.com/guillaumefalourd/wait-sleep-action
Github actions to wait / sleep during a workflow execution ⏱
https://github.com/guillaumefalourd/wait-sleep-action
all-os-supported github-actions sleep wait
Last synced: 8 months ago
JSON representation
Github actions to wait / sleep during a workflow execution ⏱
- Host: GitHub
- URL: https://github.com/guillaumefalourd/wait-sleep-action
- Owner: GuillaumeFalourd
- License: apache-2.0
- Created: 2022-03-07T12:57:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-07T14:15:34.000Z (over 3 years ago)
- Last Synced: 2025-02-01T22:21:40.830Z (9 months ago)
- Topics: all-os-supported, github-actions, sleep, wait
- Homepage: https://github.com/marketplace/actions/wait-sleep-action
- Size: 26.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Wait / Sleep action
[](https://github.com/GuillaumeFalourd/wait-sleep-action/actions/workflows/ubuntu_action_test.yml) [](https://github.com/GuillaumeFalourd/wait-sleep-action/actions/workflows/macos_action_test.yml) [](https://github.com/GuillaumeFalourd/wait-sleep-action/actions/workflows/windows_action_test.yml)

☞ Github Action to wait / sleep during a workflow execution ⏱
_**Note**: This action is supported on **all runners** operating systems (`ubuntu`, `macos`, `windows`)_
## 📚 Usage
This action uses the Linux [sleep command](https://linux.die.net/man/1/sleep) to wait for a specific time during a job execution.
SUFFIX may be:
- `'s'` for seconds (default),
- `'m'` for minutes,
- `'h'` for hours,
- `'d'` for days._**Note**: The `sleep command` on MacOS only works with seconds, therefore this action converts the SUFFIX automatically to the value in seconds._
### Examples
```yaml
steps:
- uses: GuillaumeFalourd/wait-sleep-action@v1
with:
time: '60' # for 60 seconds
``````yaml
steps:
- uses: GuillaumeFalourd/wait-sleep-action@v1
with:
time: '1m' # for 1 minute
``````yaml
steps:
- uses: GuillaumeFalourd/wait-sleep-action@v1
with:
time: '1h' # for 1 hour
```## 🤝 Contributing
☞ If you're interested in contributing to this repository, please follow the [guidelines](https://github.com/GuillaumeFalourd/wait-sleep-action/blob/main/CONTRIBUTING.md)
## 🏅 Licensed
☞ This repository uses the [Apache License 2.0](https://github.com/GuillaumeFalourd/wait-sleep-action/blob/main/LICENSE)