|
|
@ -22,11 +22,14 @@ jobs:
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
|
|
|
|
- name: Update
|
|
|
|
- name: Update
|
|
|
|
|
|
|
|
id: update
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
cd deps/microzig
|
|
|
|
cd deps/microzig
|
|
|
|
git pull origin main
|
|
|
|
git pull origin main
|
|
|
|
|
|
|
|
echo "DESCRIPTION=$(git log -1 --pretty=%B | head -n 1)" >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create Pull Request
|
|
|
|
- name: Create Pull Request
|
|
|
|
|
|
|
|
id: cpr
|
|
|
|
uses: peter-evans/create-pull-request@v4.2.3
|
|
|
|
uses: peter-evans/create-pull-request@v4.2.3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.PR_TOKEN }}
|
|
|
|
token: ${{ secrets.PR_TOKEN }}
|
|
|
@ -34,4 +37,12 @@ jobs:
|
|
|
|
commit-message: update microzig
|
|
|
|
commit-message: update microzig
|
|
|
|
delete-branch: true
|
|
|
|
delete-branch: true
|
|
|
|
title: Update microzig
|
|
|
|
title: Update microzig
|
|
|
|
|
|
|
|
body: ${{ steps.update.outputs.DESCRIPTION }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Enable Pull Request Automerge
|
|
|
|
|
|
|
|
if: steps.cpr.outputs.pull-request-operation == 'created'
|
|
|
|
|
|
|
|
uses: peter-evans/enable-pull-request-automerge@v2
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
token: ${{ secrets.PR_TOKEN }}
|
|
|
|
|
|
|
|
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
|
|
|
|
|
|
|
|
merge-method: squash
|
|
|
|