This commit is contained in:
2025-01-14 13:11:58 -05:00
parent a7060535cc
commit 3554cde9e4
+1
View File
@@ -32,6 +32,7 @@ jobs:
if [ $? -eq 0 ]; then
echo "PR exists, checking state..."
pr_state=$(tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head,state --output csv | egrep '${{ github.ref_name }}' | awk -F',' '{print $4}' | sed -e 's|"||g')
echo "PR state: ${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 }}"