☞ GitHub Action to check if a branch exists in the current repo
- id: check-branch-exists
uses: GuillaumeFalourd/[email protected]
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'
☞ If you're interested in contributing to this repository, please follow the guidelines
☞ This repository uses the Apache License 2.0