From 8631d241b0594ae6fcc33a93efd2eaf1f589b76c Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Sat, 21 Dec 2024 12:23:52 -0500 Subject: [PATCH] Small fixes. --- .gitea/workflows/branch-sonarscan-pr-merge.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/branch-sonarscan-pr-merge.yml b/.gitea/workflows/branch-sonarscan-pr-merge.yml index a3c4fe1a..8c108a1a 100644 --- a/.gitea/workflows/branch-sonarscan-pr-merge.yml +++ b/.gitea/workflows/branch-sonarscan-pr-merge.yml @@ -156,21 +156,9 @@ jobs: - name: Tea CLI Setup & PR Merge run: | echo ${{ gitea.ref_name }} - echo ${{ gitea.server_url }} - echo ${{ gitea.repository.full_name }} - echo ${{ gitea.actor }} - echo ${{ gitea.event.pull_request.number }} - echo ${{ gitea.event.pull_request.head.sha }} - echo ${{ gitea.event.pull_request.base.sha }} - echo ${{ gitea.event.pull_request.title }} - echo ${{ gitea.event.pull_request.body }} - echo ${{ gitea.event.pull_request.user.login }} - echo ${{ gitea.event.pull_request.user.email }} - echo ${{ gitea.event.pull_request.user.name }} - echo ${{ gitea.event.pull_request.user.username }} - echo ${{ gitea.event.pull_request.user.full_name }} + curl -sSL https://dl.gitea.com/tea/main/tea-main-linux-amd64 -o /usr/local/bin/tea chmod +x /usr/local/bin/tea tea login add --name gitea-rinoa --url "${{ vars.RINOA_GITEA_URL }}" --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token "${{ secrets.BOT_GITEA_TOKEN }}" - tea pr ls --repo ${{ github.repository }} --state open --output csv + tea pr ls --repo ${{ github.repository }} --state open --output csv | egrep "${{ gitea.ref_name }}" | awk -F, '{print $1}' | xargs -I {} tea pr merge --repo ${{ github.repository }} --title "Auto-merging PR" --output table \ No newline at end of file