Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable output fix #21

Merged
merged 5 commits into from
Mar 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading