Troubleshooting create PR step.

This commit is contained in:
2025-01-09 14:48:00 -05:00
parent 391ae75614
commit 991e0768b9
+3 -2
View File
@@ -31,9 +31,10 @@ jobs:
echo "Check if PR exists for ${{ github.ref_name }}"
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'
pr_state=$(tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state --output csv | egrep ${{ gitea.ref_name }} | awk -F, '{print $4}' | sed -e 's|"||g')
if [ "${pr_state}" != open ]; then
echo "PR_STATE: ${pr_state}"
if [ ${pr_state} != open ]; then
tea pr c -r ${{ github.repository }} -t "Automated PR for ${{ github.ref_name }}" -d "Automated PR for ${{ github.ref_name }}"
elif [ "${pr_state}" = open ]; then
elif [ ${pr_state} = open ]; then
echo "PR already exists, skipping creation..."
fi