This repository was archived by the owner on Feb 1, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
packages/core/src/services Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ // https://docs.gitlab.com/ce/ci/variables/README.html
2+
3+ export function detect ( ) {
4+ return ! ! process . env . GITHUB_ACTIONS
5+ }
6+
7+ export function config ( ) {
8+ return {
9+ name : 'GitHub Actions' ,
10+ service : 'github' ,
11+ build : process . env . GITHUB_RUN_ID ,
12+ commit : process . env . GITHUB_SHA ,
13+ branch : process . env . GITHUB_HEAD_REF || ( process . env . GITHUB_REF && process . env . GITHUB_REF . split ( '/' ) [ 2 ] ) ,
14+ root : process . env . GITHUB_WORKSPACE ,
15+ slug : process . env . GITHUB_REPOSITORY ,
16+ }
17+ }
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import * as circle from './circle'
55import * as cirrus from './cirrus'
66import * as codeship from './codeship'
77import * as drone from './drone'
8+ import * as github from './github'
89import * as gitlab from './gitlab'
910import * as heroku from './heroku'
1011import * as jenkins from './jenkins'
@@ -28,6 +29,7 @@ export default [
2829 cirrus ,
2930 codeship ,
3031 drone ,
32+ github ,
3133 gitlab ,
3234 jenkins ,
3335 semaphore ,
You can’t perform that action at this time.
0 commit comments