added feature to ignore checks fixed #38 (#80) #165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Workflow to wait on | |
on: | |
workflow_dispatch: | |
inputs: | |
delay_seconds: | |
description: "Time to delay" | |
required: false | |
default: "60" | |
push: | |
jobs: | |
wait-on-me: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJSON(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- name: Do some busywork | |
env: | |
default_delay: "60" | |
input_delay: ${{ github.event.inputs.delay_seconds }} | |
run: | | |
[ "$input_delay" ] && sleep_for="$input_delay" || sleep_for="$default_delay" | |
sleep $sleep_for | |
- name: Report success | |
run: echo 'Done with busywork' |