ros2nix/.github/workflows/update.yml
2024-09-18 09:26:00 +02:00

24 lines
721 B
YAML

name: Update rosdistro
on:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- name: Configure git
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Update rosdistro /tmp/.body
run: ./maint/rosdistro-update.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: rosdistro-updates
delete-branch: true
title: 'Rosdistro update'
body-path: /tmp/.body