GitHub Action
Branch mapper
GitHub Action to provide environment context mappings for branch names
Parses branch name and optionally maps to corresponding environment name.
Required GitHub references to parse the current branch from
Optional Collection of branch name mappings (default null)
Environment branch name by provided collection of name mappings
- name: Branch name mapping
uses: alexrogalskiy/github-action-branch-mapper@master
with:
github-ref: ${{ github.ref }}
map: '{ "dev": "staging", "production": "production", ".*": "sandbox" }'
Running locally:
npm run start:action --action github-action-branch-mapper --github-ref refs/heads/my/branch-name --map '{ "dev": "staging", ".*": "sandbox" }'
Branch mapper is distributed under LGPL version 3 or later, [License]. LGPLv3 is additional permissions on top of GPLv3.
Branch mapper is maintained by the following GitHub team-members:
with community support please contact with us if you have some question or proposition.
The project uses SemVer for versioning. For the versions available, see the tags on this repository.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us (emoji key).
This project follows the all-contributors specification. Contributions of any kind are welcome!
See also the list of contributors who participated in this project.
Like Branch mapper ? Consider buying me a coffee :)