Skip to content

Commit

Permalink
fix: double .yml if .yml in workflow name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed May 23, 2022
1 parent 5e2c959 commit 2d8dabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocsPublisher/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class MkdocsSettingsTab extends PluginSettingTab {
.setPlaceholder('ci')
.setValue(this.plugin.settings.workflowName)
.onChange(async(value)=> {
this.plugin.settings.workflowName = value.trim() +'.yml';
this.plugin.settings.workflowName = value.trim().replace('.yml', '') + '.yml'
await this.plugin.saveSettings();
});
});
Expand Down

0 comments on commit 2d8dabc

Please sign in to comment.