From 09396c7a762a0d60a384e39f7874daeba90b0bf1 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sun, 5 May 2024 22:57:01 +0300 Subject: [PATCH] chore(CI): Dont check the PR title if the PR are WIP --- .forgejo/workflows/git-sumi.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/git-sumi.yml b/.forgejo/workflows/git-sumi.yml index 2c45af4..a753dc2 100644 --- a/.forgejo/workflows/git-sumi.yml +++ b/.forgejo/workflows/git-sumi.yml @@ -19,4 +19,11 @@ jobs: mv git-sumi-x86_64-unknown-linux-gnu/git-sumi git-sumi chmod +x git-sumi - name: Run git-sumi - run: ./git-sumi "${{ github.event.pull_request.title }}" + run: | + # Check if the PR are WIP or not (Start with WIP: or wip:) + IS_WIP=$(echo ${{ github.event.pull_request.title }} | grep -i "^WIP:" | wc -l) + if [ $IS_WIP -eq 1 ]; then + echo "Is Work In Progress PR" + exit 0 + fi + ./git-sumi "${{ github.event.pull_request.title }}"