Update generate-app-headers.yaml

This commit is contained in:
CanbiZ 2025-01-10 12:37:52 +01:00 committed by GitHub
parent a46503209f
commit a65b9c7ba3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,19 +76,6 @@ jobs:
echo "PR already exists, skipping creation."
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
if: steps.check-changes.outcome != 'success'
run: |
echo "No changes detected or already merged, workflow completed successfully."
echo "Workflow completed successfully."