From efcac909e3a0c3ec79ae2a8edc87f04412d6cee6 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 18 Sep 2024 07:43:18 +0200 Subject: [PATCH] github: Add automatic rosdistro update --- .github/workflows/update.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..e4ec454 --- /dev/null +++ b/.github/workflows/update.yml @@ -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'