Skip to content

Commit e4d7c94

Browse files
pushpit kambojpushpit kamboj
authored andcommitted
[ci] updated the secrets's enviornment
1 parent 66a1c7e commit e4d7c94

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/deploy-hostinger.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@ on:
99
jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
12+
environment: animai_secrets
1213
steps:
14+
- name: Check required deployment config
15+
run: |
16+
if [ -z "${{ secrets.HOSTINGER_API_KEY }}" ]; then
17+
echo "HOSTINGER_API_KEY is missing from the active GitHub environment or repo secrets."
18+
exit 1
19+
fi
20+
if [ -z "${{ vars.HOSTINGER_VM_ID }}" ]; then
21+
echo "HOSTINGER_VM_ID is missing from repo/environment variables."
22+
exit 1
23+
fi
24+
1325
- uses: actions/checkout@v5
1426

1527
- name: Deploy to Hostinger

0 commit comments

Comments
 (0)