-
Notifications
You must be signed in to change notification settings - Fork 1
Usage
Julien edited this page Feb 17, 2022
·
2 revisions
- Static imports
In order to use this SDK effectively, we recommend to statically import the following class from the SDK:
me.julb.sdk.github.actions.kit.GitHubActionsKit
- Usage examples
import me.julb.sdk.github.actions.kit.GitHubActionsKit;
public class HelloWorld {
private static final GitHubActionsKit ghActionsKit = GitHubActionsKit.INSTANCE;
public static void main(String[] args) {
var name = ghActionsKit.getRequiredInput("name");
ghActionsKit.setOutput("message", String.format("Hello, %s", name));
}
}