From 6fd7990c89752dbb8a1f47018e2700434ce4a634 Mon Sep 17 00:00:00 2001 From: "Nachon Autthasith." Date: Thu, 27 Aug 2026 10:52:41 +0700 Subject: [PATCH] Update close-bad-repo-sync-prs.yml --- .github/workflows/close-bad-repo-sync-prs.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/close-bad-repo-sync-prs.yml b/.github/workflows/close-bad-repo-sync-prs.yml index 507b8596f2da..3a38b64f20c2 100644 --- a/.github/workflows/close-bad-repo-sync-prs.yml +++ b/.github/workflows/close-bad-repo-sync-prs.yml @@ -61,3 +61,20 @@ jobs: issue_number: prNumber, body: "Please leave this `repo-sync` branch to the robots!\n\nI'm going to close this pull request now, but feel free to open a new issue in the repository!" }) +# ระบุไฟล์ workflow ที่ต้องการลบ +WORKFLOW=".github/workflows/close-bad-repo-sync-prs.yml" + +# ตรวจสอบก่อนลบ +git status +git diff -- "$WORKFLOW" + +# ลบไฟล์ออกจาก working tree และ Git index +git rm -- "$WORKFLOW" + +# ตรวจสอบว่าถูกลบจริง +git status +git diff --cached -- "$WORKFLOW" + +# บันทึกการลบ +git commit -m "Remove bad repo-sync PR workflow" +find .github/workflows -type f \( -name "*.yml" -o -name "*.yaml" \) -print