Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakejarvis/wait-action
π€ Very, very simple (and small) action to sleep for an amount of time β 10s, 2m, etc.
https://github.com/jakejarvis/wait-action
actions busybox ci github-actions sleep utilities wait
Last synced: 8 days ago
JSON representation
π€ Very, very simple (and small) action to sleep for an amount of time β 10s, 2m, etc.
- Host: GitHub
- URL: https://github.com/jakejarvis/wait-action
- Owner: jakejarvis
- License: mit
- Created: 2019-08-23T12:42:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-22T15:08:03.000Z (over 1 year ago)
- Last Synced: 2024-12-13T15:17:36.197Z (13 days ago)
- Topics: actions, busybox, ci, github-actions, sleep, utilities, wait
- Language: Dockerfile
- Homepage: https://github.com/marketplace/actions/wait-sleep
- Size: 11.7 KB
- Stars: 65
- Watchers: 3
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# GitHub Action for Sleeping π€
## β οΈ This action is unmaintained.
> This action was published way back in the GitHub Actions beta and is largely abandoned now, mostly because there are much better ways to pause a job than building a whole Docker container on each run (which only works on Linux jobs, too). I highly recommend replacing this action with the following code snippets.
>
> On Linux and macOS runners, use [the `sleep` command](https://linux.die.net/man/1/sleep):
>
```yaml
- name: Sleep for 30 seconds
run: sleep 30s
shell: bash
```
>
> On Windows runners, use [the `Start-Sleep` command](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/start-sleep?view=powershell-7.1):
>
```yaml
- name: Sleep for 30 seconds
run: Start-Sleep -s 30
shell: powershell
```---
This is a very, very simple (and small βΒ only ~1.2 MB thanks to [`busybox`](https://hub.docker.com/_/busybox)) action to wait a specified amount of time before moving on in your workflow.
Input follows the Linux `sleep` syntax for time units: a number followed by `s` for seconds, `m` for minutes, etc. [Man page for `sleep` here.](https://linux.die.net/man/1/sleep)
## Usage
```yaml
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Sleep for 30 seconds
uses: jakejarvis/wait-action@master
with:
time: '30s'
```## License
This project is distributed under the [MIT license](LICENSE.md).