Update generate-app-headers.yaml

This commit is contained in:
CanbiZ 2025-01-10 12:19:11 +01:00 committed by GitHub
parent 4a3d4a055d
commit 5d0fa7aa16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,8 +48,19 @@ jobs:
# Push changes to the branch if there are any
git push origin update-app-headers --force || echo "No changes to push"
- name: Check if there are changes before creating PR
id: check-changes
run: |
git fetch origin
git diff --quiet origin/main..update-app-headers || echo "Changes detected" > changes.txt
if [ ! -f changes.txt ]; then
echo "No changes detected, skipping PR creation."
exit 0
fi
- name: Create pull request
id: create-pr
if: steps.check-changes.outcome == 'success'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |