Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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:
- Host: GitHub
- URL: https://github.com/guillaumefalourd/branch-exists
- Owner: GuillaumeFalourd
- License: apache-2.0
- Created: 2023-01-24T19:55:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-24T20:15:27.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T09:21:16.075Z (3 months ago)
- Topics: all-os-supported, github-actions
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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)