-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.22 KB
/
cronjob.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "MigrationStats"
on:
workflow_dispatch
jobs:
build-and-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.x
- name: Install dependencies
run: go get -v -t -d ./...
- name: Build
run: go build -v .
env:
GH_ORG_NAME: ${{ secrets.GH_ORG_NAME }}
GHEC_ACCESS_TOKEN: ${{ secrets.GHEC_ACCESS_TOKEN }}
GITLAB_ACCESS_TOKEN: ${{ secrets.GITLAB_ACCESS_TOKEN }}
GL_PROJECT_ID: ${{ secrets.GL_PROJECT_ID }}
- name: Run
run: go run main.go
env:
GH_ORG_NAME: ${{ secrets.GH_ORG_NAME }}
GHEC_ACCESS_TOKEN: ${{ secrets.GHEC_ACCESS_TOKEN }}
GITLAB_ACCESS_TOKEN: ${{ secrets.GITLAB_ACCESS_TOKEN }}
GL_PROJECT_ID: ${{ secrets.GL_PROJECT_ID }}
- name: Export output to GitHub issue
uses: peter-evans/create-issue-from-file@v4
with:
title: Migration Report for Run number ${{ github.run_number }}
labels: migration-report
content-filepath: stats.md
assignees: mouismail
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}