Skip to content

Merge pull request #227 from lightning-js/dev #3

Merge pull request #227 from lightning-js/dev

Merge pull request #227 from lightning-js/dev #3

Workflow file for this run

name: Trigger Website Docs Update
on:
push:
branches: [ master ]
paths:
- 'docs/**'
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger Deployment
timeout-minutes: 5
run: |
response=$(curl -X POST -w "%{http_code}" -s -o /dev/null \
--max-time 30 \
--connect-timeout 10 \
--retry 2 \
--retry-delay 5 \
${{ secrets.WEBSITE_DEPLOY_URL }})
if [ "$response" -ge 200 ] && [ "$response" -lt 300 ]; then
echo "Deployment triggered successfully"
else
echo "Failed to trigger deployment. Status code: $response"
exit 1
fi