5454
5555 - name : Validate site is accessible
5656 run : |
57- echo "🔍 Checking if site is accessible at ${{ vars .SITE_URL }}..."
58- response=$(curl -s -o /dev/null -w "%{http_code}" "${{ vars .SITE_URL }}")
57+ echo "🔍 Checking if site is accessible at ${{ secrets .SITE_URL }}..."
58+ response=$(curl -s -o /dev/null -w "%{http_code}" "${{ secrets .SITE_URL }}")
5959 if [ "$response" -eq 200 ]; then
6060 echo "✅ Site is accessible (HTTP $response)"
6161 else
@@ -67,12 +67,12 @@ jobs:
6767 uses : algolia/algoliasearch-crawler-github-actions@v1
6868 id : algolia_crawler
6969 with :
70- crawler-user-id : ${{ vars .CRAWLER_USER_ID }}
70+ crawler-user-id : ${{ secrets .CRAWLER_USER_ID }}
7171 crawler-api-key : ${{ secrets.CRAWLER_API_KEY }}
7272 algolia-app-id : ${{ secrets.ALGOLIA_APP_ID }}
7373 algolia-api-key : ${{ secrets.ALGOLIA_API_KEY }}
74- crawler-name : ${{ vars .CRAWLER_NAME }}
75- site-url : ${{ vars .SITE_URL }}
74+ crawler-name : ${{ secrets .CRAWLER_NAME }}
75+ site-url : ${{ secrets .SITE_URL }}
7676
7777 - name : Get workflow run details
7878 if : github.event_name == 'workflow_run'
@@ -118,7 +118,7 @@ jobs:
118118
119119 | Status | Index | Environment | Time |
120120 |--------|-------|-------------|------|
121- | ✅ Success | ${{ vars .INDEX_NAME }} | ${{ steps.set-env.outputs.environment }} | ${new Date().toISOString()} |
121+ | ✅ Success | ${{ secrets .INDEX_NAME }} | ${{ steps.set-env.outputs.environment }} | ${new Date().toISOString()} |
122122
123123 Your documentation changes are now searchable in production.
124124
@@ -137,8 +137,8 @@ jobs:
137137 run : |
138138 if [ "${{ steps.algolia_crawler.outcome }}" == "success" ]; then
139139 echo "✅ Algolia reindexing completed successfully for ${{ steps.set-env.outputs.environment }} environment"
140- echo "📍 Index: ${{ vars .INDEX_NAME }}"
141- echo "🌐 Site URL: ${{ vars .SITE_URL }}"
140+ echo "📍 Index: ${{ secrets .INDEX_NAME }}"
141+ echo "🌐 Site URL: ${{ secrets .SITE_URL }}"
142142 else
143143 echo "❌ Algolia reindexing failed"
144144 exit 1
0 commit comments