Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- suspendCommands :: (MonadCommand m, MonadRandom m) => m a -> m a
- stopCommands :: (MonadCommand m, MonadRandom m) => m SuspendToken
- resumeCommands :: MonadCommand m => SuspendToken -> m ()
- newtype SuspendToken = SuspendToken Text
- randomSuspendToken :: MonadRandom m => m SuspendToken
- suspendCommandsWithToken :: MonadCommand m => SuspendToken -> m a -> m a
- stopCommandsWithToken :: MonadCommand m => SuspendToken -> m ()
- newtype StopCommands = StopCommands {}
- newtype ResumeCommands = ResumeCommands {}
Basic usage
:: (MonadCommand m, MonadRandom m) | |
=> m a | Commands issued by this action will have no effect |
-> m a |
Run an action with processing of workflow commands suspended
GitHub documentation: Stopping and starting workflow commands
Stop and resume
stopCommands :: (MonadCommand m, MonadRandom m) => m SuspendToken Source #
Stops processing any workflow commands
This special command allows you to log anything without accidentally running a workflow command.
resumeCommands :: MonadCommand m => SuspendToken -> m () Source #
Resume processing workflow commands
newtype SuspendToken Source #
Manual token management
randomSuspendToken :: MonadRandom m => m SuspendToken Source #
suspendCommandsWithToken :: MonadCommand m => SuspendToken -> m a -> m a Source #
stopCommandsWithToken :: MonadCommand m => SuspendToken -> m () Source #
Command types
newtype StopCommands Source #
Instances
ToCommand StopCommands Source # | |
Defined in GitHub.Workflow.Command.Stopping addToCommand :: StopCommands -> Command -> Command Source # |
newtype ResumeCommands Source #
Instances
ToCommand ResumeCommands Source # | |
Defined in GitHub.Workflow.Command.Stopping addToCommand :: ResumeCommands -> Command -> Command Source # |