Skip to content

fix: yml

fix: yml #12

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install Dependencies
run: npm install
- name: Run Linter
run: npm run lint
- name: Run Tests
run: npm run test
- name: Create Dynamic Pull Request
id: create_pr
run: |
commit_msg=$(echo ${{ github.event.head_commit.message }})
title="Automated PR: $commit_msg"
body="Tests passed. Commit message: $commit_msg"
gh pr create --title "$title" --body "$body" --base main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}