This commit is contained in:
2025-01-19 10:09:01 -05:00
parent 0473f2791a
commit dc16f986a1
@@ -38,7 +38,7 @@ jobs:
- name: Create PR
if: ${{ steps.check-opened-pr-step.outputs.exists == '0' }}
run: |
pr_index_old=$(tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv | head | 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 | egrep -v 'index' | head | awk -F, '{print $1}' | sed -e 's|"||g')
echo "${pr_index_old}"
expr ${pr_index_old} + 1
pr_index_new=$(expr ${pr_index_old} + 1)