Export the auto PR Title in a separate step
This commit is contained in:
parent
9dda3c6635
commit
40984ad747
|
@ -21,11 +21,17 @@ jobs:
|
||||||
- name: Export Body
|
- name: Export Body
|
||||||
run: echo "BODY=$(git log -1 --pretty=%B)" >> $GITHUB_ENV
|
run: echo "BODY=$(git log -1 --pretty=%B)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Export First 5 Digits of Commit Hash
|
||||||
|
run: echo "COMMIT_SHA_5=$(echo ${{ github.sha }} | awk '{print substr($0,0,5)}')" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Export Title
|
||||||
|
run: echo "TITLE='Update Submodules to Remote Latest, triggered from commit ${{ env.COMMIT_SHA_5 }}'" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
title: 'Update Submodules to Remote Latest'
|
title: ${{ env.TITLE }}
|
||||||
branch: create-pull-request/submodules-auto-update
|
branch: create-pull-request/submodules-auto-update
|
||||||
base: master
|
base: master
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
|
Loading…
Reference in New Issue