Skip to content

Commit

Permalink
Readme is now also generated if ReadmeTemplate.md is edited
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Aug 15, 2024
1 parent 0355c24 commit 09b0a79
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
workflow_dispatch:
push:
branches: ['main']
paths: ['**.user.js', 'generate-readme.ps1']
paths: ['**.user.js', 'generate-readme.ps1', 'ReadmeTemplate.md']

name: Generate Readme

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion generate-readme.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ foreach ($file in $userJsFiles) {

#$tableRows | ForEach-Object { Write-Output $_ }

$template = Get-Content .\ReadmeTemplete.md
$template = Get-Content .\ReadmeTemplate.md
$template -replace '{scriptlist}', $tableRows

0 comments on commit 09b0a79

Please sign in to comment.