mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 19:53:59 -05:00
757f957e0a
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
15 lines
406 B
Bash
Executable file
15 lines
406 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
json=$(yarn netlify deploy --build --context deploy-preview --alias "$1" --json --message "[#$1] $2")
|
|
|
|
echo "${json}"
|
|
|
|
url=$(echo "${json}" | jq -r .deploy_url)
|
|
logs=$(echo "${json}" | jq -r .logs)
|
|
|
|
echo "::set-output name=url::${url}"
|
|
echo "::set-output name=logs::${logs}"
|