Skip to content

GuillaumeFalourd/branch-exists

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

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Branch Exists Action

Action test on Ubuntu Action test on MacOS Action test on Windows

☞ GitHub Action to check if a branch exists in the current repo :octocat:

📚 Usage

- id: check-branch-exists
  uses: GuillaumeFalourd/branch-exists@v1
  with:
    branch: <BRANCH_NAME>

- if: steps.check-branch-exists.outputs.exists == 'true'
  run: echo '<BRANCH_NAME> Branch exists'

- if: steps.check-branch-exists.outputs.exists == 'false'
  run: echo '<BRANCH_NAME> Branch NOT FOUND'

🤝 Contributing

☞ If you're interested in contributing to this repository, please follow the guidelines

🏅 Licensed

☞ This repository uses the Apache License 2.0

About

GitHub Action to check if a branch exists in the current repo :octocat:

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published