This commit is contained in:
2025-01-19 09:46:39 -05:00
parent ec3f08b88e
commit 6a5b008a55
@@ -38,6 +38,7 @@ jobs:
- name: Create PR
if: ${{ steps.check-opened-pr-step.outputs.exists == '0' }}
run: |
tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv | head -2 | tail -1 | awk -F, '{print $1}' | sed -e 's|"||g'
pr_index_old=$(tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv | head -2 | tail -1 | awk -F, '{print $1}' | sed -e 's|"||g')
echo "${pr_index_old}"
pr_index_new=$(expr ${pr_index_old} + 1)