Handle branches and tags
This commit is contained in:
parent
97cb67e184
commit
db0bb496d2
|
@ -14,7 +14,7 @@
|
||||||
(list (cons 'service "custom")
|
(list (cons 'service "custom")
|
||||||
(cons 'token (getenv "CODECOV_TOKEN"))
|
(cons 'token (getenv "CODECOV_TOKEN"))
|
||||||
;; TODO: this won't work for tags
|
;; TODO: this won't work for tags
|
||||||
(cons 'branch (substring (getenv "GITHUB_REF") (string-length "refs/heads/")))
|
(cons 'branch (string-trim (getenv "GITHUB_REF") #px"refs/(heads|tags)/"))
|
||||||
(cons 'job (getenv "GITHUB_JOB"))
|
(cons 'job (getenv "GITHUB_JOB"))
|
||||||
(cons 'slug (getenv "GITHUB_REPOSITORY"))
|
(cons 'slug (getenv "GITHUB_REPOSITORY"))
|
||||||
(cons 'build (getenv "GITHUB_RUN_ID"))
|
(cons 'build (getenv "GITHUB_RUN_ID"))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user