mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-10 09:49:18 +00:00
Update generate-app-headers.yaml
This commit is contained in:
parent
ece84cbe70
commit
6e56610e28
22
.github/workflows/generate-app-headers.yaml
vendored
22
.github/workflows/generate-app-headers.yaml
vendored
@ -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."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user