Skip to content
clock

GitHub Action

Wait / Sleep Action

v1 Latest version

Wait / Sleep Action

clock

Wait / Sleep Action

Github actions to wait / sleep during a workflow execution (all os supported) ⏱

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Wait / Sleep Action

uses: GuillaumeFalourd/wait-sleep-action@v1

Learn more about this action in GuillaumeFalourd/wait-sleep-action

Choose a version

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