Skip to content

GuillaumeFalourd/wait-sleep-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

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wait / Sleep action

Action test on Ubuntu Action test on MacOS Action test on Windows

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

    steps:
      - uses: GuillaumeFalourd/wait-sleep-action@v1
        with:
          time: '60' # for 60 seconds
    steps:
      - uses: GuillaumeFalourd/wait-sleep-action@v1
        with:
          time: '1m' # for 1 minute
    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

🏅 Licensed

☞ This repository uses the Apache License 2.0