You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB
YAML

name: Downstream Updates
on:
workflow_dispatch:
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
strategy:
matrix:
repo: [
raspberrypi-rp2040,
]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
2 years ago
repository: ZigEmbeddedGroup/${{ matrix.repo }}
submodules: recursive
fetch-depth: 0
- name: Update
id: update
run: |
cd deps/microzig
git pull origin main
echo "DESCRIPTION=$(git log -1 --pretty=%B | head -n 1)" >> $GITHUB_OUTPUT
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4.2.3
with:
token: ${{ secrets.PR_TOKEN }}
branch: update-microzig
commit-message: update microzig
delete-branch: true
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