Skip to content

Commit

Permalink
fix: migration check pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Dec 3, 2024
1 parent 6de29b3 commit 104dca7
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/check-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ name: Check Migrations
on:
pull_request:
types: [opened, synchronize]
paths:
- 'src/database/migrations/**'
# paths:
# - 'src/database/migrations/**'

permissions:
issues: write
pull-requests: write

jobs:
check-migrations:
Expand All @@ -19,7 +23,12 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: comments } = await github.rest.issues.listComments({
console.log("----CONTEXT---", JSON.stringify(context, null, 2));
console.log("GitHub Object:", Object.keys(github));
console.log("Context Issue:", context.issue);
console.log("Context Payload:", context.payload);
const { data: comments } = await github.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
Expand All @@ -30,7 +39,7 @@ jobs:
);
if (!commentExists) {
await github.rest.issues.createComment({
await github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
Expand Down

0 comments on commit 104dca7

Please sign in to comment.