Skip to content

Commit

Permalink
Fix workflow script error
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Dec 17, 2022
1 parent 84ded3e commit 0c2d6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-sponsors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
const readme = await fs.readFile('README.md', 'utf8');
const beginString = '<!-- Sponsors begin -->';
const endString = '<!-- Sponsors end -->';
const startIndex = readme.indexOf(beginString);
let startIndex = readme.indexOf(beginString);
if (-1 !== startIndex) {
startIndex = startIndex + beginString.length;
const endIndex = readme.indexOf(endString);
Expand Down

0 comments on commit 0c2d6af

Please sign in to comment.