Update generate-app-headers.yaml

This commit is contained in:
CanbiZ 2025-01-10 12:52:59 +01:00 committed by GitHub
parent ece84cbe70
commit 6e56610e28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,11 +46,16 @@ jobs:
git checkout update-app-headers
fi
# Step 5: Check if there are changes before
- name: Check if there are any changes before making any modifications
# Step 5: Ensure .app-headers file exists (if missing, create it)
- name: Ensure .app-headers file exists
run: |
git fetch origin
git diff --exit-code || echo "There are changes to commit."
if [ ! -f ".app-headers" ]; then
echo "The .app-headers file does not exist. Creating it."
touch .app-headers
echo "Generated by CI" > .app-headers
else
echo ".app-headers already exists."
fi
# Step 6: Setup Figlet (Install and set up Figlet for text generation)
- name: Set up Figlet
@ -61,12 +66,11 @@ jobs:
run: |
bash .github/workflows/generate-app-headers.sh
# Step 8: Check if changes are available (Check if the app-headers file has been modified)
- name: Check if changes are available
id: check-changes
# Step 8: Check if there are changes
- name: Check for changes
run: |
git diff --exit-code || echo "Changes detected."
# Step 9: Commit changes if any
- name: Commit changes if any
run: |
@ -114,4 +118,4 @@ jobs:
# Step 15: Complete (Final confirmation that workflow has finished)
- name: Complete
run: |
echo "Workflow has completed successfully."