From f4a256ad4fc87786963d4e0ad32c1c75ca818afa Mon Sep 17 00:00:00 2001 From: mafyuh Date: Mon, 10 Jun 2024 03:10:50 +0000 Subject: [PATCH 1/2] Delete .forgejo/workflows/get-logs.yml --- .forgejo/workflows/get-logs.yml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .forgejo/workflows/get-logs.yml diff --git a/.forgejo/workflows/get-logs.yml b/.forgejo/workflows/get-logs.yml deleted file mode 100644 index 5568ac1..0000000 --- a/.forgejo/workflows/get-logs.yml +++ /dev/null @@ -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/ From 35b343286e17f26dc41d67f0374e3b39d62cb029 Mon Sep 17 00:00:00 2001 From: mafyuh Date: Mon, 10 Jun 2024 03:11:13 +0000 Subject: [PATCH 2/2] Update .forgejo/workflows/CD.yml --- .forgejo/workflows/CD.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/CD.yml b/.forgejo/workflows/CD.yml index 571447d..f845f1d 100644 --- a/.forgejo/workflows/CD.yml +++ b/.forgejo/workflows/CD.yml @@ -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: |