You've already forked devops-pipeline-template
Update .gitea/workflows/pr-delete-branch.yml
This commit is contained in:
@@ -23,8 +23,8 @@ jobs:
|
|||||||
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
|
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
|
||||||
echo "Deleting branch: $BRANCH_NAME"
|
echo "Deleting branch: $BRANCH_NAME"
|
||||||
|
|
||||||
git config user.name "gitea-actions[bot]"
|
#git config user.name "gitea-actions[bot]"
|
||||||
git config user.email "gitea-actions[bot]@gitea"
|
#git config user.email "gitea-actions[bot]@gitea"
|
||||||
|
|
||||||
git push origin --delete "$BRANCH_NAME" || echo "Failed to delete branch $BRANCH_NAME"
|
#git push origin --delete "$BRANCH_NAME" || echo "Failed to delete branch $BRANCH_NAME"
|
||||||
echo "Branch $BRANCH_NAME has been deleted"
|
#echo "Branch $BRANCH_NAME has been deleted"
|
||||||
|
|||||||
Reference in New Issue
Block a user