Skip to content

Commit

Permalink
Update GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxRohowsky committed Mar 9, 2024
1 parent 33626d7 commit cc92f7f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 166 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/capture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

Expand All @@ -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
Expand Down
162 changes: 0 additions & 162 deletions data.json

This file was deleted.

Empty file added docs/data.json
Empty file.
2 changes: 1 addition & 1 deletion parse-readme.js → docs/parse-readme.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit cc92f7f

Please sign in to comment.