gg_is_github 1.0.0 gg_is_github: ^1.0.0 copied to clipboard
Provides a method isGitHubAction which returns true if the currenct directory is running as part of a GitHub action.
example/gg_is_github_example.dart
#!/usr/bin/env dart
// @license
// Copyright (c) 2019 - 2024 Dr. Gabriel Gatzsche. All Rights Reserved.
//
// Use of this source code is governed by terms that can be
// found in the LICENSE file in the root of this package.
import 'package:gg_is_github/src/is_github.dart';
Future<void> main() async {
print(isGitHub ? 'Running on GitHub' : 'Not running on GitHub');
}