Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy logger for performance metrics

This repo contains a Github action that logs performance metrics to Google Stackdiver during a deployment workflow. The metrics are deployment frequency and change lead time.

How it works

It assumes that you are using Github Pull Requests. Use the action during an automated workflow when a pull request is merged. In Stackdriver the logs will have the resource.type set to "global".

Inputs

github_api_key

Required The access token to use for calling the Github API. The token must have access to read your repository.

gcp_sa_key

Required A service account key to use for posting logs to a GCP repository. The project for which the service account belongs to will be used when posting logs.

branch

Required Branch that triggered the workflow. Must be provided with only the ref_name i.e. not refs/heads/.

log_name

Optional Name of the log in Google Stackdriver. If not provided it will be named projects/[GCP_PROJECT]/logs/python_deployment_logger.

Example Usage

uses: velith/manual-deploy-logger@master
with:
  github_api_key: ${{ secrets.GH_API_KEY }}
  gcp_sa_key: ${{ secrets.GCP_SA_KEY }}
  branch: ${GITHUB_REF#refs/heads/}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages