Skip to content

cdqag/action-fail-on-rerun

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

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

action-fail-on-rerun

Simple GitHub Action to fail a job if it has been retried. GitHub does not give possibility to hide a Re-run job from the UI. So a workaround is to fail the job if it has been retried.

Inputs

  • error-title

    The error title. Default is Job Re-run Not Allowed.

  • error-message

    The error message. Default is Owner of this workflow disabled possibility to Re-run this job.

Example usage

name: Release

on:
  workflow_dispatch:

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
    - uses: cdqag/action-fail-on-rerun@v1 # Must be a first step to work as a guard

    # Rest of your job steps

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

About

GitHub Action to fail a job if it has been Re-run

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •