This repository is a set actions hidden behind branches.
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.
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.
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