diff --git a/.gitea/workflows/pr-cloudflare-docker-deploy.yml b/.gitea/workflows/pr-cloudflare-docker-deploy.yml index 9fb3af2d..dc2e4948 100644 --- a/.gitea/workflows/pr-cloudflare-docker-deploy.yml +++ b/.gitea/workflows/pr-cloudflare-docker-deploy.yml @@ -38,8 +38,8 @@ 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 | egrep -v 'index' - 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')' + tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv | egrep -v 'index' | head -1 | awk -F, '{print $1}' + pr_index_old=$(tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv | egrep -v 'index' | head -1 | awk -F, '{print $1}' | sed -e 's|"||g')' 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 }} docker-compose-ansible-lints: