Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.71 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.71 KB

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.1
  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