mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-10 17:59:17 +00:00
Update generate-app-headers.yaml
This commit is contained in:
parent
a46503209f
commit
a65b9c7ba3
15
.github/workflows/generate-app-headers.yaml
vendored
15
.github/workflows/generate-app-headers.yaml
vendored
@ -76,19 +76,6 @@ jobs:
|
|||||||
echo "PR already exists, skipping creation."
|
echo "PR already exists, skipping creation."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Merge pull request (Squash and Merge)
|
|
||||||
if: steps.create-pr.outputs.pr_exists == 'true'
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
# Get the PR number and merge it if it exists
|
|
||||||
PR_NUMBER=$(gh pr list --head "update-app-headers" --json number --jq '.[].number')
|
|
||||||
if [ -n "$PR_NUMBER" ]; then
|
|
||||||
# Squash and merge the PR automatically
|
|
||||||
gh pr merge $PR_NUMBER --squash --auto --delete-branch
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Final Status
|
- name: Final Status
|
||||||
if: steps.check-changes.outcome != 'success'
|
|
||||||
run: |
|
run: |
|
||||||
echo "No changes detected or already merged, workflow completed successfully."
|
echo "Workflow completed successfully."
|
||||||
|
Loading…
Reference in New Issue
Block a user