Skip to content

Commit

Permalink
Merge pull request #58 from ably/basePath
Browse files Browse the repository at this point in the history
Adds a way to get the base-path i.e. relative path
  • Loading branch information
umair-ably authored Dec 12, 2024
2 parents 2d02fb8 + c5e58f8 commit 27f1025
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ outputs:
https://sdk.ably.com/builds/ably/ably-flutter/pull/307/dartdoc/
When used in the Flutter SDK repository, with `artifactName` as `"dartdoc"`.
base-path:
description: |
The base path. For example:
/builds/ably/ably-flutter/pull/307/dartdoc/
Useful when needing to know the relative path.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ core.debug(`GitHub Environment Name: ${githubEnvironmentName}`);

const urlBase = `https://${s3BucketName}/${s3KeyPrefix}/`;
core.setOutput('url-base', urlBase);
core.setOutput('base-path', s3KeyPrefix);

const runMode = core.getInput('mode');
if (runMode === 'preempt') {
process.exit(0);
Expand Down

0 comments on commit 27f1025

Please sign in to comment.