Fix netlify not using aliases containing a slash (#1819)

This commit is contained in:
Erik Michelson 2022-01-30 21:57:58 +01:00 committed by GitHub
parent fa0bea492e
commit e671aa4aa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ jobs:
- name: Run netlify CLI deployment - name: Run netlify CLI deployment
env: env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
run: bash netlify/deploy.sh "${{ github.event.number }}" "${{ github.head_ref }}" "${{ github.event.pull_request.title }}" run: bash netlify/deploy.sh "${{ github.event.number }}" "${{ github.event.pull_request.title }}"
id: netlify-result id: netlify-result
- name: Mark GitHub deployment as finished - name: Mark GitHub deployment as finished

View file

@ -4,9 +4,9 @@
# #
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
deployid="$1-$2" json=$(yarn netlify deploy --build --context deploy-preview --alias "$1" --json --message "[#$1] $2")
json=$(yarn netlify deploy --build --context deploy-preview --alias "${deployid}" --json --message "[#$1] $3") echo "${json}"
url=$(echo "${json}" | jq -r .deploy_url) url=$(echo "${json}" | jq -r .deploy_url)
logs=$(echo "${json}" | jq -r .logs) logs=$(echo "${json}" | jq -r .logs)