Skip to content

Commit

Permalink
project-ids/-urls as comma-separated string
Browse files Browse the repository at this point in the history
The value can be used with https://github.com/marketplace/actions/upload-an-artefact-to-relisio,
for example, to upload a single artefact and copy it into different releases.
  • Loading branch information
kedoska committed Mar 18, 2022
1 parent 7ac5b65 commit eecfce8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Use it to create new deployment projects and release your products within your w

|id|description|
|---|:---|
|project-ids|A string representing the ids of the created projects.
|public-urls|A string representing the public URLs of the created projects (visible depending on the selected `scope`)|
|project-ids|A string representing the ids of the created projects (`id1, id2, ..., idN`).
|public-urls|A string representing the public URLs of the created projects (`url1, url2, ..., urlN`) (visible depending on the selected `scope`)|
|created-projects|The number of created projects within this action|

## Deploy a new project
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ async function run(): Promise<void> {

const publicUrls = projectIds.map(x => `${relisoUrl}/${workspacePath}/${x}`)

core.setOutput('project-ids', projectIds.join('\n'))
core.setOutput('public-urls', publicUrls.join('\n'))
core.setOutput('project-ids', projectIds.join(','))
core.setOutput('public-urls', publicUrls.join(','))
core.setOutput('created-projects', projectIds.length)
} catch (error) {
core.debug(`Deployment Failed with Error: ${error}`)
Expand Down

0 comments on commit eecfce8

Please sign in to comment.