We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c53924a commit 4f7aaa7Copy full SHA for 4f7aaa7
1 file changed
.github/workflows/jekyll.yml
@@ -76,15 +76,15 @@ jobs:
76
RAW=$(gh api -H "Accept: application/vnd.github+json" \
77
repos/${{ github.repository }}/pages/deployments \
78
--method GET --paginate -f per_page=1)
79
- URL=$(python - <<'PY'
80
-import json,sys
81
-data=json.loads(sys.stdin.read())
82
-if isinstance(data,list) and data:
83
- print(data[0].get('page_url') or '')
84
-else:
85
- print('')
86
-PY
87
- <<< "$RAW")
+ URL=$(echo "$RAW" | python - <<'PY'
+ import json, sys
+ data = json.loads(sys.stdin.read())
+ if isinstance(data, list) and data:
+ print(data[0].get('page_url') or '')
+ else:
+ print('')
+ PY
+ )
88
if [ -n "$URL" ]; then
89
if [ "${{ github.event_name }}" = "pull_request" ]; then
90
echo "Preview deployment URL: $URL" >> "$GITHUB_STEP_SUMMARY"
0 commit comments