From 6a301ba60362f27775ab661438ca04e64dbcb281 Mon Sep 17 00:00:00 2001 From: IlyaMoskva Date: Mon, 10 Apr 2023 11:23:39 +0400 Subject: [PATCH] Added T-Shirt size plugin --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6976b7..b174dc7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,3 +23,16 @@ jobs: run: mvn -B package --file pom.xml - name: Run tests run: mvn -B test --file pom.xml + - name: Install T-Shirt Size Label Plugin + run: | + git config --global user.email "tshirt-label-bot@example.com" + git config --global user.name "tshirt-label-bot" + git checkout master + git pull origin master + npm install -g github-tshirt-label-bot + - name: Set T-Shirt Size Label + run: | + export TSHIRT_SIZE=$(echo "$GITHUB_HEAD_REF" | grep -oP '\[(S|M|L|XL|XXL)\]') + github-tshirt-label-bot $TSHIRT_SIZE + git push origin master +