Skip to content

Commit

Permalink
Variable output fix (#21)
Browse files Browse the repository at this point in the history
* HS Account ID needs to be in quotes

Signed-off-by: Ben Rockwood <[email protected]>

* Fix case of outputs

Signed-off-by: Ben Rockwood <[email protected]>

* Consistent casing

Signed-off-by: Ben Rockwood <[email protected]>

* Fix step name

Signed-off-by: Ben Rockwood <[email protected]>

* Revert docusaurus from this PR

Signed-off-by: Ben Rockwood <[email protected]>

---------

Signed-off-by: Ben Rockwood <[email protected]>
  • Loading branch information
benr authored Mar 5, 2024
1 parent c50e00e commit 2867f29
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/actions/PREview-data/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ name: "PREview: Data"
description: "Caluculate branch, bucket, and PREview URL."

outputs:
url:
URL:
description: "PREview URL"
value: ${{ steps.data.outputs.url }}
branch:
value: ${{ steps.data.outputs.URL }}
BRANCH:
description: "Branch Name"
value: ${{ steps.data.outputs.branch }}
bucket:
value: ${{ steps.data.outputs.BRANCH }}
BUCKET:
description: "Bucket for PREview"
value: ${{ steps.data.outputs.bucket }}
value: ${{ steps.data.outputs.BUCKET }}

runs:
using: "composite"
steps:
- name: Determine branch shortname and bucket name
shell: bash
id: names
id: data
run: |
BRANCH=`echo ${GITHUB_HEAD_REF} | cksum | cut -d" " -f1` # Use checksum of branch name to avoid invalid bucket names
echo BRANCH=${BRANCH} >> $GITHUB_OUTPUT
Expand All @@ -35,4 +35,4 @@ runs:
- name: Verify outputs
shell: bash
id: out
run: echo ${{ steps.names.outputs.BUCKET }}
run: echo ${{ steps.data.outputs.BUCKET }}

0 comments on commit 2867f29

Please sign in to comment.