diff --git a/.changeset/open-bikes-behave.md b/.changeset/open-bikes-behave.md new file mode 100644 index 00000000..3c590620 --- /dev/null +++ b/.changeset/open-bikes-behave.md @@ -0,0 +1,5 @@ +--- +"@changesets/action": patch +--- + +use cwd param diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index eecbc210..81ad8333 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -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 @@ -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 @@ -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: diff --git a/src/index.ts b/src/index.ts index 1b0f63ab..0b48ab3a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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); let publishScript = core.getInput("publish"); let hasChangesets = changesets.length !== 0; @@ -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"),