Skip to content

Commit

Permalink
Fix ternary syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuebert committed May 28, 2024
1 parent 1314a77 commit 10071b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_private_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: |
WEBSITE_DIR=${{inputs.website_dir}}
PARENT_DOMAIN=${{inputs.parent_domain}}
SUBDOMAIN=${{ inputs.subdomain == '' ? github.event.repository.name : inputs.subdomain }}
SUBDOMAIN=${{ inputs.subdomain == '' && github.event.repository.name || inputs.subdomain }}
BUCKET_PATH="gs://gen-website-private/$PARENT_DOMAIN/$SUBDOMAIN"
gcloud storage rsync --recursive --delete-unmatched-destination-objects --cache-control 'public, max-age=60' $WEBSITE_DIR $BUCKET_PATH
echo "Published directory $WEBSITE_DIR to $SUBDOMAIN.$PARENT_DOMAIN ($BUCKET_PATH)"

0 comments on commit 10071b4

Please sign in to comment.