|
50 | 50 | exit 0 |
51 | 51 | fi |
52 | 52 |
|
53 | | - echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT |
| 53 | + echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT" |
54 | 54 | echo "Found PR #$PR_NUMBER" |
55 | 55 |
|
56 | 56 | - name: Wait and check if docs preview is ready |
|
77 | 77 |
|
78 | 78 | if [ "$HTTP_CODE" = "200" ]; then |
79 | 79 | echo "✅ Preview is ready! HTTP $HTTP_CODE" |
80 | | - echo "preview_ready=true" >> $GITHUB_OUTPUT |
81 | | - echo "preview_url=$PREVIEW_URL" >> $GITHUB_OUTPUT |
| 80 | + echo "preview_ready=true" >> "$GITHUB_OUTPUT" |
| 81 | + echo "preview_url=$PREVIEW_URL" >> "$GITHUB_OUTPUT" |
82 | 82 | exit 0 |
83 | 83 | else |
84 | 84 | echo "⏳ Preview not ready yet (HTTP $HTTP_CODE). Waiting $SLEEP_TIME seconds..." |
|
88 | 88 | done |
89 | 89 |
|
90 | 90 | echo "❌ Preview did not become ready within the timeout period" |
91 | | - echo "preview_ready=false" >> $GITHUB_OUTPUT |
| 91 | + echo "preview_ready=false" >> "$GITHUB_OUTPUT" |
92 | 92 |
|
93 | 93 | - name: Comment on PR with preview link |
94 | 94 | if: steps.check-preview.outputs.preview_ready == 'true' |
@@ -187,11 +187,11 @@ jobs: |
187 | 187 |
|
188 | 188 | if [ "$HTTP_CODE" = "200" ]; then |
189 | 189 | echo "✅ Preview is ready!" |
190 | | - echo "preview_ready=true" >> $GITHUB_OUTPUT |
191 | | - echo "preview_url=$PREVIEW_URL" >> $GITHUB_OUTPUT |
| 190 | + echo "preview_ready=true" >> "$GITHUB_OUTPUT" |
| 191 | + echo "preview_url=$PREVIEW_URL" >> "$GITHUB_OUTPUT" |
192 | 192 | else |
193 | 193 | echo "❌ Preview not available (HTTP $HTTP_CODE)" |
194 | | - echo "preview_ready=false" >> $GITHUB_OUTPUT |
| 194 | + echo "preview_ready=false" >> "$GITHUB_OUTPUT" |
195 | 195 | fi |
196 | 196 |
|
197 | 197 | - name: Display results |
|
0 commit comments