Fix script step
This commit is contained in:
parent
1026762190
commit
186d7e33a6
|
@ -77,9 +77,9 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Trigger Remote Script
|
- name: Trigger Remote Script
|
||||||
run: |
|
run: |
|
||||||
response=$(curl -s -o /dev/null -w "%{http_code}" -X POST http://your-server-ip:5000/trigger-script -H "Authorization: SecretToken")
|
response=$(curl -s -o /dev/null -w "%{http_code}" -X POST http://your-server-ip:5000/trigger-script -H "Authorization: SecretToken")
|
||||||
if [ "$response" -ne 200 ]; then
|
if [ "$response" -ne 200 ]; then
|
||||||
echo "Script execution failed with HTTP status $response"
|
echo "Script execution failed with HTTP status $response"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if: success() && github.ref == 'refs/heads/main'
|
if: success() && github.ref == 'refs/heads/main'
|
||||||
|
|
Loading…
Reference in New Issue