This commit is contained in:
2025-01-12 18:38:53 -05:00
parent 7671cb26da
commit 83b97b1d90
+1
View File
@@ -28,6 +28,7 @@ jobs:
tea login default gitea-rinoa
echo "Checking if PR exists for ${{ github.ref_name }}"
pr_state=$(tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head,state --output csv | egrep ${{ gitea.ref_name }} | awk -F, '{print $4}' | sed -e 's|"||g')
echo "${pr_state}"
if [ "${pr_state}" != 'open' ]; then
echo "PR does not exist, creating..."
tea pr c -r "${{ github.repository }}" -t "Automated PR for ${{ github.ref_name }}" -d "Automated PR for ${{ github.ref_name }}"