forked from Helvethor/rust-rpi-rgb-led-matrix
-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (32 loc) · 1.04 KB
/
update-rpi-rgb-led-matrix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Update rpi-rgb-led-matrix
on:
schedule:
# Run weekly
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
update-rpi-rgb-led-matrix:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: true
- name: Update submodule
run: |
git submodule update --remote
- name: Set env
run: |
cd rpi-led-matrix-sys/cpp-library
echo "SUBMODULE_SHA=$(git rev-parse HEAD | cut -c 1-6)" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
add-paths: |
rpi-led-matrix-sys/cpp-library
title: rpi-rgb-led-matrix Update to ${{env.SUBMODULE_SHA}}
body: Update rpi-rgb-led-matrix to ${{env.SUBMODULE_SHA}}
commit-message: Update rpi-rgb-led-matrix to ${{env.SUBMODULE_SHA}}
branch: update-rpi-rgb-led-matrix-${{env.SUBMODULE_SHA}}
delete-branch: true
token: ${{ secrets.GITHUB_TOKEN }}