Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/open-bikes-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@changesets/action": patch
---

use cwd param
6 changes: 3 additions & 3 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
release_check:
if: github.repository == 'changesets/action' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/release-pr')
if: github.repository == 'Sovereign-Labs/changesets-action' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/release-pr')
runs-on: ubuntu-latest
steps:
- id: report_in_progress
Expand All @@ -31,7 +31,7 @@ jobs:
in_progress_reaction_id: ${{ steps.report_in_progress.outputs.in_progress_reaction_id }}

release:
if: github.repository == 'changesets/action'
if: github.repository == 'Sovereign-Labs/changesets-action'
timeout-minutes: 20
runs-on: ubuntu-latest
needs: release_check
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
needs: [release_check, release]
timeout-minutes: 2
runs-on: ubuntu-latest
if: failure() && github.repository == 'changesets/action' && (needs.release_check.result == 'failure' || needs.release.result == 'failure')
if: failure() && github.repository == 'Sovereign-Labs/changesets-action' && (needs.release_check.result == 'failure' || needs.release.result == 'failure')
steps:
- run: gh api /repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions -f content='-1'
env:
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
`machine github.com\nlogin github-actions[bot]\npassword ${githubToken}`
);

let { changesets } = await readChangesetState();
let { changesets } = await readChangesetState(cwd);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there some issue reported for this?


let publishScript = core.getInput("publish");
let hasChangesets = changesets.length !== 0;
Expand Down Expand Up @@ -123,6 +123,7 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
git,
octokit,
prTitle: getOptionalInput("title"),
cwd,
commitMessage: getOptionalInput("commit"),
hasPublishScript,
branch: getOptionalInput("branch"),
Expand Down