Skip to content

Commit

Permalink
Forcing the repo name to populate in comment pr step
Browse files Browse the repository at this point in the history
  • Loading branch information
flowstate committed Nov 6, 2024
1 parent 34ebc53 commit dc440a1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ jobs:
script: |
const version = process.env.VERSION;
const prNumber = context.payload.pull_request.number;
const owner = context.repo.owner;
const repo = context.repo.repo;
// Log the values for debugging
console.log("Owner:", context.repo.owner);
console.log("Repo:", context.repo.repo);
console.log("Context Repo:", JSON.stringify(context.repo, null, 2));
const comment = `
🚀 Preview package published!
Expand All @@ -80,13 +88,14 @@ jobs:
`;
github.rest.issues.createComment({
owner: owner,
repo: repo,
issue_number: prNumber,
owner: context.repo.owner,
repo: context.repo.name,
body: comment
});
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit dc440a1

Please sign in to comment.