Compare commits

..

3 commits

Author SHA1 Message Date
a0d452758d Merge branch 'main' into renovate/ghcr.io-open-webui-open-webui-0.x
All checks were successful
Lint on PR / Lint YAML files (pull_request) Successful in 8s
Deploy to Hosts / deploy (pull_request) Successful in 51s
2024-06-10 03:11:17 +00:00
35b343286e Update .forgejo/workflows/CD.yml 2024-06-10 03:11:13 +00:00
f4a256ad4f Delete .forgejo/workflows/get-logs.yml 2024-06-10 03:10:50 +00:00
2 changed files with 2 additions and 20 deletions

View file

@ -94,8 +94,8 @@ jobs:
-d "{\"extra_vars\": {\"target_host\": \"$TARGET_HOST\", \"folder\": \"$FOLDER\"}}" \
"https://awx.mafyuh.xyz/api/v2/job_templates/13/launch/"
- name: Delay for 2 minutes
run: sleep 120 # 120 seconds = 2 minutes
- name: Delay for 45 seconds
run: sleep 45
- name: Fetch AWX Job Logs
run: |

View file

@ -1,18 +0,0 @@
---
name: Get AWX Job Logs
on:
workflow_call:
inputs:
name: get-logs-trigger
jobs:
fetch-logs:
runs-on: docker
steps:
- name: Get 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')
# Fetch the logs for the job
curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/jobs/$job_id/stdout/