Skip to content

Commit

Permalink
minor tweaks for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatnema committed Jul 29, 2024
1 parent c9f3ad9 commit b182f5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update-docs-in-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
- name: Checkout Another repository
uses: actions/checkout@v3
with:
repository: akshatnema/website
repository: asyncapi/website
path: website
token: ${{ env.GITHUB_TOKEN }}
- name: Config git
run: |
git config --global user.name akshatnema
git config --global user.email [email protected]
git config --global user.name asyncapi-bot
git config --global user.email [email protected]
- name: Create branch
working-directory: ./website
run: |
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
const newFullPath = path.join(folderPath, newFileName);
await fs.rename(fullPath, newFullPath);
const newData = `---\ntitle: '${parentDirName}'\nweight: ${itemIndex}\n---\n\n`;
const newData = `---\ntitle: '${parentDirName.charAt(0).toUpperCase() + parentDirName.slice(1)}'\nweight: ${itemIndex}\n---\n\n`;
let existingFileData = await fs.readFile(newFullPath, 'utf8');
existingFileData = existingFileData.replace(/<img\s+src="(?!http)(.*?)"/g, (match, src) => {
Expand Down

0 comments on commit b182f5f

Please sign in to comment.