Skip to content

Commit

Permalink
Update content_list_page.yml to use GitHub secret and update contentL…
Browse files Browse the repository at this point in the history
…istUpdater.js to not use the GitHub token.
  • Loading branch information
sagarpatel288 committed Oct 7, 2024
1 parent fa255a4 commit 5922534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/content_list_page.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update GitHub Pages
name: Update Content List for GitHub Pages

on:
push:
Expand All @@ -22,6 +22,8 @@ jobs:
run: npm install # If you need dependencies, otherwise skip this step

- name: Run update script
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
run: node contentListUpdater.js

- name: Commit and push changes
Expand Down
2 changes: 1 addition & 1 deletion contentListUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ document.addEventListener('DOMContentLoaded', async () => {
// Start fetching Kotlin files from the root of the repository
await fetchKotlinFiles();
renderFileList(kotlinFiles);
});
});

0 comments on commit 5922534

Please sign in to comment.