This commit is contained in:
2025-01-19 09:52:56 -05:00
parent ea2df7f80f
commit f46f1800ec
@@ -41,7 +41,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 -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
echo "${pr_index_old}"
pr_index_new=$(expr ${pr_index_old} + 1)
tea pr c -r ${{ github.repository }} -t "Automated PR for ${{ github.ref_name }} - ${pr_index_new}" -d "Automatically created PR for branch: ${{ github.ref_name }}" -a ${{ github.actor }}