Skip to content
Julien edited this page Feb 17, 2022 · 2 revisions

Contents

  1. 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

  1. 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));
	}
}

Clone this wiki locally