Skip to content

Commit

Permalink
release test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelangeloio committed Nov 7, 2023
1 parent 74b1136 commit 4a959c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/auto/crate-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import userHome from 'user-home'

/** Get the parsed cargo.toml for the crate */
export const getCargoConfig = async () => {
const content = (await readFile(join(process.cwd(), 'Cargo.toml'))).toString()
const content = (await readFile(join(process.cwd() || process.env.GITHUB_WORKSPACE || '', 'Cargo.toml'))).toString()
return { toml: parseToml(content), content }
}

Expand Down Expand Up @@ -36,7 +36,7 @@ export async function getWorkspaceMembers(): Promise<
> {
const { toml } = await getCargoConfig()
return toml.workspace.members.map(async (member: string) => {
const packagePath = join(process.cwd(), member, 'Cargo.toml')
const packagePath = join(process.cwd() || process.env.GITHUB_WORKSPACE || '', member, 'Cargo.toml')
const packageContent = (await readFile(packagePath)).toString()
const packageToml = parseToml(packageContent.toString())
return {
Expand Down

0 comments on commit 4a959c3

Please sign in to comment.