Skip to content

Commit

Permalink
Add output property bootstrap-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-hugo committed Sep 28, 2021
1 parent d22a0bb commit d54ef8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ outputs:
description: 'The allowed quota for the storage'
deployment-enabled:
description: 'Is the deployement enabled for this branch'
bootstrap-deploy:
description: "true if it's the first deployment"
runs:
using: 'node12'
main: 'index.js'
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,8 @@ try {
core.setOutput("storage-quota", branch.webSpaceQuota.storageQuota);
console.log(`deployment-enabled: true`)
core.setOutput("deployment-enabled", true);
console.log(`bootstrap-deploy: ${branch.webSpace.lastDeploymentDate == null}`)
core.setOutput("bootstrap-deploy", branch.webSpace.lastDeploymentDate == null);
return;
}

Expand Down Expand Up @@ -710,6 +712,8 @@ try {
core.setOutput("storage-quota", branch.webSpaceQuota.storageQuota);
console.log(`deployment-enabled: true`)
core.setOutput("deployment-enabled", true);
console.log(`bootstrap-deploy: ${branch.webSpace.lastDeploymentDate == null}`)
core.setOutput("bootstrap-deploy", branch.webSpace.lastDeploymentDate == null);
})
.catch(err => {
core.setFailed(err);
Expand Down

0 comments on commit d54ef8b

Please sign in to comment.