diff --git a/.github/workflows/capture.yml b/.github/workflows/capture.yml index 578d234..538db68 100644 --- a/.github/workflows/capture.yml +++ b/.github/workflows/capture.yml @@ -8,7 +8,7 @@ on: #push: # branches: [ "master" ] pull_request: - branches: [ "master" ] + branches: [ ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/markdown.yml b/.github/workflows/markdown.yml index f6ea850..5c91c0b 100644 --- a/.github/workflows/markdown.yml +++ b/.github/workflows/markdown.yml @@ -6,7 +6,7 @@ name: markdown on: # Triggers the workflow on push or pull request events but only for the "master" branch push: - branches: [ "master", "markdown-test" ] + branches: [ "master" ] pull_request: branches: [ "master" ] @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Run parse-readme.js - run: node parse-readme.js + run: node docs/parse-readme.js - name: Commit and push if changed uses: EndBug/add-and-commit@v4 diff --git a/data.json b/data.json deleted file mode 100644 index 7ceb589..0000000 --- a/data.json +++ /dev/null @@ -1,162 +0,0 @@ -[ - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Adam", - "lastName": "Alston", - "githubProfile": "https://github.com/adamalston", - "githubReadme": "https://github.com/adamalston/adamalston", - "screenshotPath": "screenshots/adamalston.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Abhishek", - "lastName": "Choudhary", - "githubProfile": "https://github.com/theabbie", - "githubReadme": "https://github.com/theabbie/theabbie", - "screenshotPath": "screenshots/theabbie.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Brian", - "lastName": "Douglas", - "githubProfile": "https://github.com/bdougie", - "githubReadme": "https://github.com/bdougie/bdougie", - "screenshotPath": "screenshots/bdougie.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Edward", - "lastName": "Thomson", - "githubProfile": "https://github.com/ethomson", - "githubReadme": "https://github.com/ethomson/ethomson", - "screenshotPath": "screenshots/ethomson.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Erwin", - "lastName": "Lejeune", - "githubProfile": "https://github.com/guilyx", - "githubReadme": "https://github.com/guilyx/guilyx", - "screenshotPath": "screenshots/guilyx.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Garima", - "lastName": "Singh", - "githubProfile": "https://github.com/garimasingh128", - "githubReadme": "https://github.com/garimasingh128/garimasingh128", - "screenshotPath": "screenshots/garimasingh128.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Jacob", - "lastName": "Colvin", - "githubProfile": "https://github.com/MacroPower", - "githubReadme": "https://github.com/MacroPower/MacroPower", - "screenshotPath": "screenshots/MacroPower.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Jonathan", - "lastName": "Gin", - "githubProfile": "https://github.com/jonathangin52", - "githubReadme": "https://github.com/jonathangin52/jonathangin52", - "screenshotPath": "screenshots/jonathangin52.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Kavish", - "lastName": "Hukmani", - "githubProfile": "https://github.com/DoubleGremlin181", - "githubReadme": "https://github.com/DoubleGremlin181/DoubleGremlin181", - "screenshotPath": "screenshots/DoubleGremlin181.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Lee", - "lastName": "Reilly", - "githubProfile": "https://github.com/leereilly", - "githubReadme": "https://github.com/leereilly/leereilly", - "screenshotPath": "screenshots/leereilly.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Max", - "lastName": "Rohowsky", - "githubProfile": "https://github.com/maxontech", - "githubReadme": "https://github.com/maxontech/maxontech", - "screenshotPath": "screenshots/maxontech.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Michael", - "lastName": "Hoffmann", - "githubProfile": "https://github.com/mokkapps", - "githubReadme": "https://github.com/mokkapps/mokkapps", - "screenshotPath": "screenshots/mokkapps.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Monica", - "lastName": "Powell", - "githubProfile": "https://github.com/M0nica", - "githubReadme": "https://github.com/M0nica/M0nica", - "screenshotPath": "screenshots/M0nica.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Raymond", - "lastName": "Li", - "githubProfile": "https://github.com/Raymo111", - "githubReadme": "https://github.com/Raymo111/Raymo111", - "screenshotPath": "screenshots/Raymo111.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Ross", - "lastName": "Williams", - "githubProfile": "https://github.com/rossjrw", - "githubReadme": "https://github.com/rossjrw/rossjrw", - "screenshotPath": "screenshots/rossjrw.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Taehyun", - "lastName": "Hwang", - "githubProfile": "https://github.com/HwangTaehyun", - "githubReadme": "https://github.com/HwangTaehyun/HwangTaehyun", - "screenshotPath": "screenshots/HwangTaehyun.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Tim", - "lastName": "Burgan", - "githubProfile": "https://github.com/timburgan", - "githubReadme": "https://github.com/timburgan/timburgan", - "screenshotPath": "screenshots/timburgan.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Tushar", - "lastName": "Mittal", - "githubProfile": "https://github.com/techytushar", - "githubReadme": "https://github.com/techytushar/techytushar", - "screenshotPath": "screenshots/techytushar.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Yufan", - "lastName": "You", - "githubProfile": "https://github.com/ouuan", - "githubReadme": "https://github.com/ouuan/ouuan", - "screenshotPath": "screenshots/ouuan.jpeg" - }, - { - "timestamp": "2024-03-09T22:41:10.183Z", - "firstName": "Zach", - "lastName": "Nguyen", - "githubProfile": "https://github.com/cszach", - "githubReadme": "https://github.com/cszach/cszach", - "screenshotPath": "screenshots/cszach.jpeg" - } -] \ No newline at end of file diff --git a/docs/data.json b/docs/data.json new file mode 100644 index 0000000..e69de29 diff --git a/parse-readme.js b/docs/parse-readme.js similarity index 96% rename from parse-readme.js rename to docs/parse-readme.js index 3585530..f539ed1 100644 --- a/parse-readme.js +++ b/docs/parse-readme.js @@ -1,7 +1,7 @@ const fs = require('fs'); const path = require('path'); const filePath = path.join(__dirname, 'README.md'); -const dataFilePath = path.join(__dirname, 'data.json'); +const dataFilePath = path.join(__dirname, 'docs', 'data.json'); fs.readFile(filePath, 'utf8', (err, data) => { if (err) {