Skip to content

Commit

Permalink
chore: added default to env
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jul 3, 2024
1 parent 0142048 commit df95f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { envSchema, PluginInputs, pluginSettingsSchema, pluginSettingsValidator
export async function run() {
const payload = github.context.payload.inputs;

const env = Value.Decode(envSchema, payload.env);
const env = Value.Decode(envSchema, payload.env || {});
const settings = Value.Decode(pluginSettingsSchema, Value.Default(pluginSettingsSchema, JSON.parse(payload.settings)));

if (!pluginSettingsValidator.test(settings)) {
Expand Down

0 comments on commit df95f5f

Please sign in to comment.