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'
5
5
import * as cirrus from './cirrus'
6
6
import * as codeship from './codeship'
7
7
import * as drone from './drone'
8
+ import * as github from './github'
8
9
import * as gitlab from './gitlab'
9
10
import * as heroku from './heroku'
10
11
import * as jenkins from './jenkins'
@@ -28,6 +29,7 @@ export default [
28
29
cirrus ,
29
30
codeship ,
30
31
drone ,
32
+ github ,
31
33
gitlab ,
32
34
jenkins ,
33
35
semaphore ,
You can’t perform that action at this time.
0 commit comments