Skip to content

Github action to determine level of upgrade according to labels in issue

Notifications You must be signed in to change notification settings

nestordgs-tw/issue-labels-to-level-release

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

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Issue Label to semver Level

A Github action to determine level of release according to labels in an issue

This action was created to help facilitate a GitHub Action "ChatOps" solution.

Usage


    - name: Level lelease
        uses: nestordgs-tw/issue-labels-to-level-release@main
        with:
          owner: ${{ github.repository_owner }}
          repo: ${{ github.event.repository.name }}
          issue_number: ${{ github.event.issue.number }}
          labels_to_validate: '[{ "value": "patch", "label": "label1" },{ "value": "minor", "label": "label2" },{ "value": "major", "label": "label3" }]'
          token: ${{ secrets.GITHUB_TOKEN }}

Outputs

The level releated according to the labels. Note that in order to read the step output the action step must have an id.

    - name: Level lelease
        id: level_release
        uses: nestordgs-tw/issue-labels-to-level-release@main
        with:
          owner: ${{ github.repository_owner }}
          repo: ${{ github.event.repository.name }}
          issue_number: ${{ github.event.issue.number }}
          labels_to_validate: '[{ "value": "patch", "label": "label1" },{ "value": "minor", "label": "label2" },{ "value": "major", "label": "label3" }]'
          token: ${{ secrets.GITHUB_TOKEN }}
    - name: Check outputs
        run: |
            echo "Level: ${{ steps.level_release.outputs.level }}"

About

Github action to determine level of upgrade according to labels in issue

Topics

Resources

Stars

Watchers

Forks