Compare commits
No commits in common. "42bb79d0ac6c448c92f7c90512b98d05c78dcc16" and "be237483d730fc77faf00fa84cff44fa0d9912cd" have entirely different histories.
42bb79d0ac
...
be237483d7
1 changed files with 2 additions and 8 deletions
|
@ -42,9 +42,6 @@ jobs:
|
|||
downloaders)
|
||||
target_host=${{ secrets.DOWNLOADERS_IP }}
|
||||
;;
|
||||
AI)
|
||||
target_host="ai.lan"
|
||||
;;
|
||||
# Add cases for other folders/hosts
|
||||
*)
|
||||
echo "Unknown folder: $folder"
|
||||
|
@ -70,10 +67,7 @@ jobs:
|
|||
- name: Fetch AWX Job Logs
|
||||
run: |
|
||||
# Fetch the most recent job from AWX
|
||||
job_id=$(curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/job_templates/13/jobs/?order_by=-id | jq -r '.results[0].id')
|
||||
job_id=$(curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/job_templates/13/jobs?order_by=-id | jq -r '.results[0].id')
|
||||
|
||||
# Fetch the logs for the job
|
||||
logs=$(curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/jobs/$job_id/stdout/?format=json)
|
||||
|
||||
# Display the logs
|
||||
echo "$logs"
|
||||
curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/jobs/$job_id/stdout/
|
||||
|
|
Reference in a new issue