This repository contains a GitHub Action that compares repositories in GitHub with repositories in GitLab or Bitbucket.
GH_ORG_NAME
- The name of the GitHub organizationGL_PROJECT_ID
- The ID of the GitLab projectGHEC_ACCESS_TOKEN
- The access token for the GitHub Enterprise Cloud instanceGITLAB_ACCESS_TOKEN
- The access token for the GitLab instanceGH_STATS_REPO_NAME
- The repo where the stats file will be createdGH_STATS_ORG_NAME
- The organization where the stats file will be created
make build
make test
make release
make run
export GH_ORG_NAME=demo-org
export GL_PROJECT_ID=123456
export GHEC_ACCESS_TOKEN=gh_access_token
export GITLAB_ACCESS_TOKEN=gl_access_token
go run main.go
name: Go
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mouismail/go-compare-repos@v1
with:
go-version: '1.19'
go-command: 'go build'