Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Mafyuh/iac
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3dcaf9aff4300020a38c3b8af84edb96c4dd1b61
Choose a base ref
..
head repository: Mafyuh/iac
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1e3a2db19c5ad5a5e821293bb98e883cec622644
Choose a head ref
Showing with 8 additions and 4 deletions.
  1. +3 −3 .forgejo/workflows/CD.yml
  2. +5 −1 .forgejo/workflows/yamllint.yml
6 changes: 3 additions & 3 deletions .forgejo/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ jobs:
if [ "$(git rev-parse --is-shallow-repository)" = "true" ]; then
git fetch --unshallow
fi
folders=$(git diff --name-only HEAD~1 HEAD | grep '^iac/docker/' | cut -d/ -f3 | sort | uniq)
folders=$(git diff --name-only HEAD~1 HEAD | cut -d/ -f1 | sort | uniq)
echo "Modified folders: $folders"
echo "::set-output name=folders::$folders"
@@ -83,8 +83,8 @@ jobs:
-d "{\"extra_vars\": {\"target_host\": \"$target_host\", \"folder\": \"$folder\"}}" \
"https://awx.mafyuh.xyz/api/v2/job_templates/13/launch/"
sleep 45
sleep 45 # Delay for 45 seconds before fetching logs
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')
logs=$(curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/jobs/$job_id/stdout/?format=json)
echo "AWX Job Logs for folder: $folder"
6 changes: 5 additions & 1 deletion .forgejo/workflows/yamllint.yml
Original file line number Diff line number Diff line change
@@ -17,10 +17,14 @@ jobs:
with:
node-version: 14

- name: Install yamllint
run: |
npm install -g yaml-lint
- name: Show yamllint version
run: |
yamllint --version
- name: Lint .yml files
run: |
yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" docker/**/*.yml
yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" ./**/*.yml