From 4e83ceca2ecfcd2600e79b4f7d5773322cf9c1f1 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sun, 17 Mar 2024 08:17:18 +0300 Subject: [PATCH] chore: Add more steps to git-sumi action --- .forgejo/workflows/git-sumi.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/git-sumi.yml b/.forgejo/workflows/git-sumi.yml index c16221a..2c45af4 100644 --- a/.forgejo/workflows/git-sumi.yml +++ b/.forgejo/workflows/git-sumi.yml @@ -1,3 +1,5 @@ +name: Check PR title + on: pull_request: types: @@ -6,13 +8,15 @@ on: - reopened jobs: - main: + check_pr_title: runs-on: debian steps: - uses: https://code.forgejo.org/actions/checkout@v4 - - run: | - curl -L "https://github.com/welpo/git-sumi/releases/download/v0.0.6/git-sumi-x86_64-unknown-linux-gnu.tar.xz" -o git-sumi.tar.xz + - name: Install git-sumi + run: | + curl -s -L "https://github.com/welpo/git-sumi/releases/download/v0.0.6/git-sumi-x86_64-unknown-linux-gnu.tar.xz" -o git-sumi.tar.xz tar -xf git-sumi.tar.xz mv git-sumi-x86_64-unknown-linux-gnu/git-sumi git-sumi chmod +x git-sumi - ./git-sumi "${{ github.event.pull_request.title }}" + - name: Run git-sumi + run: ./git-sumi "${{ github.event.pull_request.title }}"