Coder Social home page Coder Social logo

jakejarvis / wait-action Goto Github PK

View Code? Open in Web Editor NEW
66.0 3.0 22.0 12 KB

πŸ’€ Very, very simple (and small) action to sleep for an amount of time β€” 10s, 2m, etc.

Home Page: https://github.com/marketplace/actions/wait-sleep

License: MIT License

Dockerfile 82.91% Shell 17.09%
github-actions actions ci busybox sleep wait utilities

wait-action's Introduction

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.

wait-action's People

Contributors

jakejarvis avatar joaopgrassi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wait-action's Issues

[warning]Unexpected input 'time', valid inputs are ['']

Using the suggested syntax from the README this action works great (as expected), but GitHub Actions logs always reports a warning:

##[warning]Unexpected input 'time', valid inputs are ['']

Looking around online, it appears this may be a new behavior from Github Actions while it's in beta.

ref: wearerequired/lint-action#53
Excerpt from 17 hours ago as of this writing: "I've just gotten the same thing pop up, I was testing this last week and wasn't hitting it, all of a sudden it has appeared."

Not sure what the fix is yet, but it seems likely Github Actions beta will announce a way to specify expected input values, probably resolving this.

Sleep until the branch is 15m old

Hey!

Is it somehow possible to sleep a time-periode, relative to the branch creation date?

In our automation we want to run github jobs when they are at least 15 mins old, therefore sleep for 15 mins only newly created branches or e.g. 0s when the branch is older then 15 min...

Is this kind of scenario support with this action?
Could you give me a pointer?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.