Skip to content

Commit

Permalink
Merge pull request #43 from panoratech/feat/update-prisma-fix-ci
Browse files Browse the repository at this point in the history
feat: fix
  • Loading branch information
naelob authored Nov 1, 2023
2 parents a8887ed + 3414059 commit cb027b7
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 31 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/update_prisma_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ name: Update Prisma Schema
on:
schedule:
# Runs every 30 minutes
- cron: "*/5 * * * *"
- cron: "*/2 * * * *"

jobs:
update-schema:
permissions:
contents: write
issues: write
pull-requests: write

env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -59,7 +64,7 @@ jobs:
if: steps.git-check.outputs.changes_detected == 'true'
uses: pascalgn/[email protected]
with:
token: ${{ secrets.GH_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
mergeMethod: squash
commitMessage: "chore: Update Prisma schema"
pullRequestFilterLabels: "auto-merge"
Expand Down
4 changes: 4 additions & 0 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/mapped-types": "*",
"@nestjs/passport": "^10.0.2",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/swagger": "^7.1.14",
"@prisma/client": "^5.4.2",
"axios": "^1.5.1",
"passport": "^0.6.0",
"passport-local": "^1.0.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1",
"uuid": "^9.0.1"
Expand All @@ -39,6 +42,7 @@
"@types/express": "^4.17.17",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
"@types/passport-local": "^1.0.37",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
Expand Down
Loading

0 comments on commit cb027b7

Please sign in to comment.