Skip to content

elseu/sdu-define-tag-branch-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Define tag and branch based on ref variable action

This will help to get a branch and tag name out of the ${{ github.ref }}

Usage

Directory structure

You need to have in the root of your project having a directory called deploy within this directory there should be a values.yaml file that will be used for the helm chart.

Action

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: elseu/sdu-define-tag-branch-action@v1
        id: branch_tag

Outputs

Prop description
branch* The branch name if it is a tag the branch name will be empty
tag* If it is a tag it will return here a tag other wise it is the branch name
type* Defines what type it is branch or tag (branch / tag)
branch_not_formatted * Branch name not formatted