Skip to content

Commit

Permalink
Add GitHub Actions to the list of detected CI platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla authored and lukaslueg committed Aug 24, 2021
1 parent cd36145 commit 1920e24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ pub enum CIPlatform {
GoCD,
/// https://bitbucket.org
BitBucket,
/// https://github.com/features/actions
GitHubActions,
/// Unspecific
Generic,
}
Expand All @@ -297,6 +299,7 @@ impl fmt::Display for CIPlatform {
CIPlatform::TaskCluster => "TaskCluster",
CIPlatform::GoCD => "GoCD",
CIPlatform::BitBucket => "BitBucket",
CIPlatform::GitHubActions => "GitHub Actions",
CIPlatform::Generic => "Generic CI",
})
}
Expand Down Expand Up @@ -351,7 +354,8 @@ impl CIPlatform {
("BUILDKITE", Buildkite),
("HUDSON_URL", Hudson),
("GO_PIPELINE_LABEL", GoCD),
("BITBUCKET_COMMIT", BitBucket)
("BITBUCKET_COMMIT", BitBucket),
("GITHUB_ACTIONS", GitHubActions)
);

if envmap.contains_key("TASK_ID") && envmap.contains_key("RUN_ID") {
Expand Down

0 comments on commit 1920e24

Please sign in to comment.