Skip to content

💤 Very, very simple (and small) action to sleep for an amount of time — 10s, 2m, etc.

License

Notifications You must be signed in to change notification settings

jakejarvis/wait-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

- name: Sleep for 30 seconds
  run: sleep 30s
  shell: bash

On Windows runners, use the Start-Sleep command:

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

Usage

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.