gg_is_github 1.0.6 copy "gg_is_github: ^1.0.6" to clipboard
gg_is_github: ^1.0.6 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');
}
0
likes
140
pub points
45%
popularity

Publisher

verified publisherinlavigo.com

Provides a method isGitHubAction which returns true if the currenct directory is running as part of a GitHub action.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

path

More

Packages that depend on gg_is_github