mirror of
https://github.com/wentasah/ros2nix.git
synced 2025-06-10 00:02:23 +03:00
github: Add automatic rosdistro update
This commit is contained in:
parent
fa777c4ec2
commit
efcac909e3
1 changed files with 25 additions and 0 deletions
25
.github/workflows/update.yml
vendored
Normal file
25
.github/workflows/update.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Update rosdistro
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 12 * * FRI"
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
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
|
||||
run: nix flake update rosdistro --commit-lock-file
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v7
|
||||
with:
|
||||
branch: rosdistro-updates
|
||||
base: main
|
||||
delete-branch: true
|
||||
title: 'Rosdistro update'
|
Loading…
Add table
Add a link
Reference in a new issue