mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 18:04:38 +00:00
Update generate-app-headers.yaml
This commit is contained in:
parent
4a3d4a055d
commit
5d0fa7aa16
1 changed files with 11 additions and 0 deletions
11
.github/workflows/generate-app-headers.yaml
vendored
11
.github/workflows/generate-app-headers.yaml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue