Update auto-update-app-headers.yml
Some checks failed
Auto Update .app-files / update-app-files (push) Waiting to run
Shellcheck / Shellcheck (push) Waiting to run
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
CanbiZ 2025-01-24 14:50:48 +01:00 committed by GitHub
parent 2db7cb1fdb
commit b4f2594cef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@ on:
- main - main
paths: paths:
- 'ct/**.sh' - 'ct/**.sh'
workflow_dispatch: # Ermöglicht das manuelle Ausführen der Action workflow_dispatch:
jobs: jobs:
update-app-files: update-app-files:
@ -47,11 +47,14 @@ jobs:
- name: Check if there are any changes - name: Check if there are any changes
id: verify-diff id: verify-diff
run: | run: |
echo "Checking for changes..."
git status
if git diff --quiet; then if git diff --quiet; then
echo "No changes detected." echo "No changes detected."
echo "changed=false" >> $GITHUB_OUTPUT echo "changed=false" >> $GITHUB_OUTPUT
else else
echo "Changes detected." echo "Changes detected:"
git diff --stat
echo "changed=true" >> $GITHUB_OUTPUT echo "changed=true" >> $GITHUB_OUTPUT
fi fi
@ -76,3 +79,4 @@ jobs:
- name: No changes detected - name: No changes detected
if: steps.verify-diff.outputs.changed == 'false' if: steps.verify-diff.outputs.changed == 'false'
run: echo "No changes to commit. Workflow completed successfully." run: echo "No changes to commit. Workflow completed successfully."