Skip to content

Commit

Permalink
Added changes according to review
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatnema committed Sep 9, 2024
1 parent e794c25 commit 02d730f
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 @@ -16,11 +16,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Checkout Current repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: bindings
- name: Checkout Another repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: asyncapi/website
path: website
Expand All @@ -37,7 +37,7 @@ jobs:
uses: actions/github-script@v4
with:
script: |
const { writeFile } = require('fs').promises;
const { writeFile } = require('fs').promis;
const configPath = './website/config/edit-page-config.json';
const checkSlug = 'reference/bindings/';
const slug = {
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
const newFullPath = path.join(folderPath, newFileName);
fs.renameSync(fullPath, newFullPath);
const newData = `---\ntitle: '${parentDirName.charAt(0).toUpperCase() + parentDirName.slice(1)}'\nweight: ${itemIndex}\n---\n\n`;
const newData = `---\ntitle: '${parentDirName}'\nweight: ${itemIndex}\n---\n\n`;
let existingFileData = fs.readFileSync(newFullPath, 'utf8');
existingFileData = existingFileData.replace(/<img\s+src="(?!http)(.*?)"/g, (match, src) => {
Expand Down

0 comments on commit 02d730f

Please sign in to comment.