Library generator #1382
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: jazzy | |
branch: jazzy | |
- distro: rolling | |
branch: rolling | |
steps: | |
- uses: actions/checkout@v4 | |
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@v6 | |
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 Raspberry Pi Pico library. Close and reopen to trigger CI. | |
branch: autoupdate_micro_ros_rpipico_${{ matrix.branch }} | |
delete-branch: true | |
base: ${{ matrix.branch }} | |
token: ${{ secrets.PR_TOKEN }} | |