Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
homelab committed Jul 27, 2024
1 parent dfc6636 commit 3de466c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
github: gustavolaux

2 changes: 1 addition & 1 deletion .github/workflows/reply-new-issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: generate comment
id: generate_comment
run: |
curl --location --request POST 'https://api.openai.com/v1/engines/text-davinci-003/completions' --header 'Authorization: Bearer ${{ secrets.OPENAI_KEY }}' --header 'Content-Type: application/json' --data-raw '{ "prompt": "be grateful for the new issue and let it know that we will take an action in a few moments", "temperature": 0.7, "max_tokens": 256, "top_p": 1, "best_of": 2, "frequency_penalty": 1, "presence_penalty": 1 }' -o openai.json
curl --location --request POST 'https://api.openai.com/v1/engines/text-davinci-003/completions' --header 'Authorization: Bearer ${{ secrets.OPENAI_KEY }}' --header 'Content-Type: application/json' --data-raw '{ "prompt": "be grateful for the new issue and let them know that we will take an action in a few moments", "temperature": 0.7, "max_tokens": 256, "top_p": 1, "best_of": 2, "frequency_penalty": 1, "presence_penalty": 1 }' -o openai.json
echo "::set-output name=text::$(cat openai.json | jq -c '.choices[0].text' | sed 's/\\n//g' | sed 's/\"//g')"
- name: comment
uses: actions/github-script@v3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
name: Lint and Test
name: Validation

on:
pull_request:
types: [opened, synchronize]

jobs:
lint-and-test:
name: Lint
runs-on: ${{ matrix.operating-system }}
validation:
name: Validation on ${{ matrix.os }} @ ${{ matrix.node }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest]
node: ['14', '16', '18', '20', '22']
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set Node.js 16.x
- name: Set Node.js ${{ matrix.node }}
uses: actions/setup-node@master
with:
version: 16.x
version: ${{ matrix.node }}
- name: npm ci
run: npm ci
- name: npm run lint
Expand Down

0 comments on commit 3de466c

Please sign in to comment.