Print git refs to check if the deploy job is entering the if statement

This commit is contained in:
Elijah 2024-02-02 09:21:19 +01:00
parent 2c720e80ab
commit 3d7741f3df
1 changed files with 7 additions and 0 deletions

View File

@ -75,6 +75,13 @@ jobs:
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Check refs
run: |
echo $GITHUB_REF_NAME
echo $GITHUB_REF
echo $GITHUB_REF_TYPE
- name: Trigger Remote Script - name: Trigger Remote Script
run: | run: |
response=$(curl -s -o /dev/null -w "%{http_code}" -X POST http://45.150.187.54:5000/trigger-script -H "Authorization: SecretToken") response=$(curl -s -o /dev/null -w "%{http_code}" -X POST http://45.150.187.54:5000/trigger-script -H "Authorization: SecretToken")