Skip to content

Commit

Permalink
Emit the URL base output regardless of mode.
Browse files Browse the repository at this point in the history
Feels safer as contract in action.yml strongly suggests the output will always be present.
  • Loading branch information
QuintinWillison committed Feb 28, 2023
1 parent 255ccd1 commit b779647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ core.debug(`S3 Key Prefix: ${s3KeyPrefix}`);
core.debug(`GitHub Environment Name: ${githubEnvironmentName}`);

const urlBase = `https://${s3BucketName}/${s3KeyPrefix}/`;
core.setOutput('url-base', urlBase);
const runMode = core.getInput('mode');
if (runMode === 'preempt') {
core.setOutput('url-base', urlBase);
process.exit(0);
}

Expand Down

0 comments on commit b779647

Please sign in to comment.