From 4e39415f49088d5c91746d8dbcb05b4f75ae75b3 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Wed, 15 Jan 2025 12:14:27 -0500 Subject: [PATCH] . --- .gitea/workflows/deployment.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deployment.yml b/.gitea/workflows/deployment.yml index 4527e260..cfa59b09 100644 --- a/.gitea/workflows/deployment.yml +++ b/.gitea/workflows/deployment.yml @@ -32,9 +32,9 @@ jobs: tea login default gitea-rinoa echo "Creating PR for branch: ${{ github.ref_name }}" pr_index_recent=$(tea pr ls --state all --fields index --output csv | sed -e 's|"||g' | head -2 | tail -1) - pr_index_new=$((pr_index + 1)) - echo "PR index: $pr_index" - tea pr c -r ${{ github.repository }} -t "Automated PR for ${{ github.ref_name }} - ${pr_index_new}" --body "Automatically created PR for branch: ${{ github.ref_name }}" + pr_index_new=$((${pr_index_recent} + 1)) + echo "PR index: ${pr_index_new}" + tea pr c -r ${{ github.repository }} -t "Automated PR for ${{ github.ref_name }} - ${pr_index_new}" -d "Automatically created PR for branch: ${{ github.ref_name }}" -a ${{ github.actor }} # echo "Checking if any open PRs exist for branch: ${{ github.ref_name }}" # PR_STATE=$(tea pr ls --repo "${{ github.repository }}" --state all --fields index,title,head,state --output csv | grep "${{ github.ref_name }}") | head -1 | awk -F',' '{print $4}' | tr -d '"'