forked from lukicdarkoo/pico-micro-ros
-
Notifications
You must be signed in to change notification settings - Fork 56
executable file
·45 lines (43 loc) · 1.41 KB
/
library_generation.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
38
39
40
41
42
43
44
name: Library generator
on:
workflow_dispatch:
inputs:
name:
description: "Manual trigger"
schedule:
- cron: '0 6 * * *'
jobs:
micro_ros_raspberrypi_pico_sdk_generate:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- distro: humble
branch: humble
- distro: iron
branch: iron
- distro: rolling
branch: rolling
steps:
- uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}
- name: Get date
id: date
run: echo "::set-output name=date::$(date +'%d-%m-%Y %H:%M')"
- name: Update libraries
run: |
docker run --rm -v $(pwd):/project microros/micro_ros_static_library_builder:${{ matrix.distro }}
sudo chown -R $(whoami) .
sudo chmod -R 777 .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: micro-ROS ${{ matrix.distro }} Library auto-update ${{ steps.date.outputs.date }}
title: micro-ROS Library auto-update ${{ steps.date.outputs.date }}
body: This PR is autogenerated and updates the micro-ROS Arduino library. Close and reopen to trigger CI.
branch: autoupdate_micro_ros_arduino_${{ matrix.branch }}
delete-branch: true
reviewers: pablogs9
base: ${{ matrix.branch }}