This action should be used to use git-metrics after installing it with action-install-git-metrics.
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Install git-metrics
uses: jdrouet/action-git-metrics@install
- name: Execute git-metrics
uses: jdrouet/action-git-metrics@execute
with:
pull: 'false' # Shortcut to pull before executing the script
push: 'false' # Shortcut to push after executing the script
sync: 'false' # Shortcut to pull before and push after executing the script
script: |
pull
add my-metric --tag "foo: bar" 12.34
push
continueOnError: 'false'