Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guillaumefalourd/branch-exists

GitHub Action to check if a branch exists in the current repo :octocat:
https://github.com/guillaumefalourd/branch-exists

all-os-supported github-actions

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Branch Exists Action

[![Action test on Ubuntu](https://github.com/GuillaumeFalourd/branch-exists/actions/workflows/ubuntu_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/branch-exists/actions/workflows/ubuntu_action_test.yml) [![Action test on MacOS](https://github.com/GuillaumeFalourd/branch-exists/actions/workflows/macos_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/branch-exists/actions/workflows/macos_action_test.yml) [![Action test on Windows](https://github.com/GuillaumeFalourd/branch-exists/actions/workflows/windows_action_test.yml/badge.svg)](https://github.com/GuillaumeFalourd/branch-exists/actions/workflows/windows_action_test.yml)

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

## 📚 Usage

```yaml
- id: check-branch-exists
uses: GuillaumeFalourd/[email protected]
with:
branch:

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

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

## 🤝 Contributing

☞ If you're interested in contributing to this repository, please follow the [guidelines](https://github.com/GuillaumeFalourd/branch-exists/blob/main/CONTRIBUTING.md)

## 🏅 Licensed

☞ This repository uses the [Apache License 2.0](https://github.com/GuillaumeFalourd/branch-exists/blob/main/LICENSE)