Skip to content

GitHub Action that will fail the workflow when certain conditions are met.

License

Notifications You must be signed in to change notification settings

lots0logs/gh-action-conditional-failure

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

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action: Conditional Failure

Fails based on certain conditions

Conditions

File Exists

Checks for existing file matching any of the provided glob patterns.

  • Arg: --file-exists
  • Example: --file-exists -- **/*.error.log

Modifiers

Not

Negates the next condition

  • Arg: --not
  • Example: --not --file-exists -- **/*.error.log