From d8e703df67a61a81d99f3a1b6d59ac0ca61800d5 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 4 Mar 2024 10:09:56 +0100 Subject: [PATCH 1/2] Add periodic action to update pixi lock file --- .github/workflows/pixi-auto-update-ci.yml | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pixi-auto-update-ci.yml diff --git a/.github/workflows/pixi-auto-update-ci.yml b/.github/workflows/pixi-auto-update-ci.yml new file mode 100644 index 0000000..bc1e26c --- /dev/null +++ b/.github/workflows/pixi-auto-update-ci.yml @@ -0,0 +1,31 @@ +name: Pixi auto update + +on: + # At 00:00 of every monday + schedule: + - cron: "0 0 * * 1*" + # on demand + workflow_dispatch: + +jobs: + auto-update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: prefix-dev/setup-pixi@v0.5.1 + with: + pixi-version: "latest" + cache: false + - name: Update pixi lock file + run: | + rm pixi.lock + pixi install + - uses: peter-evans/create-pull-request@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: update/pixi-lock + title: Update pixi lock file + commit-message: "Update `pixi.lock`" + body: Update pixi dependencies to the latest version. + author: "GitHub " From 0887754ad46b4c20f9692bd609ab981a590e9796 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 4 Mar 2024 10:37:13 +0100 Subject: [PATCH 2/2] Update pixi-auto-update-ci.yml --- .github/workflows/pixi-auto-update-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pixi-auto-update-ci.yml b/.github/workflows/pixi-auto-update-ci.yml index bc1e26c..d55756b 100644 --- a/.github/workflows/pixi-auto-update-ci.yml +++ b/.github/workflows/pixi-auto-update-ci.yml @@ -3,7 +3,7 @@ name: Pixi auto update on: # At 00:00 of every monday schedule: - - cron: "0 0 * * 1*" + - cron: "0 0 * * 1" # on demand workflow_dispatch: