Adding in PR number to title to distinguish multiple PRs in branches.
This commit is contained in:
@@ -39,7 +39,10 @@ jobs:
|
|||||||
if: ${{ steps.check-opened-pr-step.outputs.exists == '0' }}
|
if: ${{ steps.check-opened-pr-step.outputs.exists == '0' }}
|
||||||
run: |
|
run: |
|
||||||
echo "Creating PR for branch: ${{ github.ref_name }}"
|
echo "Creating PR for branch: ${{ github.ref_name }}"
|
||||||
tea pr c -r ${{ github.repository }} -t "Automated PR for ${{ github.ref_name }}" -d "Automatically created PR for branch: ${{ github.ref_name }}" -a ${{ github.actor }}
|
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_new=$(expr ${pr_index_old} + 1)
|
||||||
|
echo "New PR index: ${pr_index_new}"
|
||||||
|
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:
|
docker-compose-ansible-lints:
|
||||||
name: Docker Compose Test
|
name: Docker Compose Test
|
||||||
|
|||||||
Reference in New Issue
Block a user