An open API service indexing awesome lists of open source software.

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 ⏱

Awesome Lists containing this project

README

          

# Wait / Sleep action

[![Action test on Ubuntu](https://github.com/GuillaumeFalourd/wait-sleep-action/actions/workflows/ubuntu_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/wait-sleep-action/actions/workflows/ubuntu_action_test.yml) [![Action test on MacOS](https://github.com/GuillaumeFalourd/wait-sleep-action/actions/workflows/macos_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/wait-sleep-action/actions/workflows/macos_action_test.yml) [![Action test on Windows](https://github.com/GuillaumeFalourd/wait-sleep-action/actions/workflows/windows_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/wait-sleep-action/actions/workflows/windows_action_test.yml)

![](https://user-images.githubusercontent.com/22433243/157050923-fae8a5d7-9e4e-4b3e-a8e2-fe55acf6f1a7.png)

☞ 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)