Run yarn prettier and fix styling
Signed-off-by: Kamil Markow <kamilmarkow@gmail.com>
This commit is contained in:
+6
-2
@@ -109,7 +109,9 @@ describe('github:environment:create examples', () => {
|
||||
expect(
|
||||
mockOctokit.rest.actions.createEnvironmentVariable,
|
||||
).not.toHaveBeenCalled();
|
||||
expect(mockOctokit.rest.actions.getEnvironmentPublicKey).not.toHaveBeenCalled();
|
||||
expect(
|
||||
mockOctokit.rest.actions.getEnvironmentPublicKey,
|
||||
).not.toHaveBeenCalled();
|
||||
expect(
|
||||
mockOctokit.rest.actions.createOrUpdateEnvironmentSecret,
|
||||
).not.toHaveBeenCalled();
|
||||
@@ -141,7 +143,9 @@ describe('github:environment:create examples', () => {
|
||||
expect(
|
||||
mockOctokit.rest.actions.createEnvironmentVariable,
|
||||
).not.toHaveBeenCalled();
|
||||
expect(mockOctokit.rest.actions.getEnvironmentPublicKey).not.toHaveBeenCalled();
|
||||
expect(
|
||||
mockOctokit.rest.actions.getEnvironmentPublicKey,
|
||||
).not.toHaveBeenCalled();
|
||||
expect(
|
||||
mockOctokit.rest.actions.createOrUpdateEnvironmentSecret,
|
||||
).not.toHaveBeenCalled();
|
||||
|
||||
+5
-4
@@ -167,10 +167,11 @@ export function createGithubEnvironmentAction(options: {
|
||||
}
|
||||
|
||||
if (secrets) {
|
||||
const publicKeyResponse = await client.rest.actions.getEnvironmentPublicKey({
|
||||
repository_id: repository.data.id,
|
||||
environment_name: name,
|
||||
});
|
||||
const publicKeyResponse =
|
||||
await client.rest.actions.getEnvironmentPublicKey({
|
||||
repository_id: repository.data.id,
|
||||
environment_name: name,
|
||||
});
|
||||
|
||||
await Sodium.ready;
|
||||
const binaryKey = Sodium.from_base64(
|
||||
|
||||
Reference in New Issue
Block a user