Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Test action #1

Merged
merged 9 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Read Markdown Files
name: Generate doc patterns

on: [push, pull_request]
on: pull_request

jobs:
build:
Expand All @@ -21,4 +21,10 @@ jobs:
npm run build

- name: Run the script
run: node dist/main.js
run: |
printenv
npm run start
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
REPO_NAME: ${{ github.event.repository.name }}
INPUT_DOCS_GLOB: ${{ github.event.inputs.directory || 'docs/description/*.md' }}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author: 'Nicola Klemenc'
inputs:
docs_glob:
description: 'Glob pattern to search for documentation files'
required: true
required: false
default: 'docs/description/*.md'
runs:
using: 'node20'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

[Source](http://phpmd.org/rules/cleancode.html#booleanargumentflag)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -rf dist && npx tsc && node dist/main.js"
"build": "rm -rf dist && npx tsc",
"start": "node ./dist/main.js"
},
"keywords": [],
"author": "",
Expand Down
Loading