Skip to content
battery

GitHub Action

Branch mapper

v2.0.1 Latest version

Branch mapper

battery

Branch mapper

Maps branch name to corresponding environment name

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Branch mapper

uses: AlexRogalskiy/[email protected]

Learn more about this action in AlexRogalskiy/github-action-branch-mapper

Choose a version

Branch mapper

GitHub Action to provide environment context mappings for branch names

GitHub marketplace

management: perfekt👌 code style: prettier Mergify Status Reviewed by Hound

DeepScan grade GitHub tag (latest by date) GitHub Release Date Lines of code GitHub closed issues GitHub closed pull requests GitHub repo size GitHub last commit GitHub language count GitHub search hit counter GitHub Repository branches GitHub Repository dependents Renovatebot Dependabot NewReleases Hits-of-Code CI CircleCI

GitHub Super-Linter ComVer Public workflows that use this action. Licence

Table of contents

Description

JavaScript Project Status: Active – The project has reached a stable, usable state and is being actively developed. Project created status Project updated status

Parses branch name and optionally maps to corresponding environment name.

Inputs

github-ref

Required GitHub references to parse the current branch from

map

Optional Collection of branch name mappings (default null)

Outputs

environment

Environment branch name by provided collection of name mappings

Examples

- 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" }'

Visitor stats

GitHub page hits

GitHub stars GitHub forks GitHub watchers

Licensing

Branch mapper is distributed under LGPL version 3 or later, [License]. LGPLv3 is additional permissions on top of GPLv3.

license

Authors

Branch mapper is maintained by the following GitHub team-members:

  • Author

with community support please contact with us if you have some question or proposition.

Versioning

The project uses SemVer for versioning. For the versions available, see the tags on this repository.

Contribution

Contributors Display

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!

PRs Welcome Github contributors

See also the list of contributors who participated in this project.

Acknowledgement

Stargazers repo roster for @AlexRogalskiy/github-action-branch-mapper

Forks

Forkers repo roster for @AlexRogalskiy/github-action-branch-mapper

Development Support

Like Branch mapper ? Consider buying me a coffee :)

Become a Patron Buy Me A Coffee KoFi


forthebadge forthebadge forthebadge