Skip to content

jdrouet/action-git-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

git-metrics scripts for GitHub actions

This repository is a set actions hidden behind branches.

Installing git-metrics

This action is located on this repository, in the install branch.

- name: install git-metrics
  uses: jdrouet/action-git-metrics@install
  with:
    # if you want to overwrite an existing binary
    force: "true"
    # the version to install
    version: "latest"

Available here.

Executing a set of commands

This is an action to execute a set of git-metrics commands

- name: execute git-metrics
  uses: jdrouet/action-git-metrics@execute
  with:
    pull: 'true'
    # set that to true when not a pull request
    push: ${{ github.event_name != 'pull_request' }}
    script: |
      add binary-size --tag "platform: linux" 1024

Available here.

Reporting metrics diffs and checks

This will execute the diff or check command and push the result to a comment (if done in a pull request) and in the summary.

- name: execute git-metrics diff
  uses: jdrouet/action-git-metrics@diff
- name: execute git-metrics check
  uses: jdrouet/action-git-metrics@check

Available here and here.

About

Github action for git-metrics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published