From a8dfe10379cd4a7f8fe4ca3eb240ddbe6da8de26 Mon Sep 17 00:00:00 2001 From: "Jeongseok (JS) Lee" Date: Wed, 19 Jun 2024 22:24:22 -0700 Subject: [PATCH] Create update_lockfiles.yml https://pixi.sh/dev/advanced/updates_github_actions/ Signed-off-by: Jeongseok (JS) Lee --- .github/workflows/update_lockfiles.yml | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/update_lockfiles.yml diff --git a/.github/workflows/update_lockfiles.yml b/.github/workflows/update_lockfiles.yml new file mode 100644 index 0000000000000..d5dac2ed806ad --- /dev/null +++ b/.github/workflows/update_lockfiles.yml @@ -0,0 +1,36 @@ +name: Update Lock Files + +permissions: + contents: write + pull-requests: write + +on: + workflow_dispatch: + schedule: + - cron: 0 5 1 * * # Runs at 05:00, on day 1 of the month + +jobs: + pixi-update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up pixi + uses: prefix-dev/setup-pixi@v0.8.1 + with: + run-install: false + - name: Update lockfiles + run: | + pixi global install pixi-diff-to-markdown + pixi update --json --no-install | pixi-diff-to-markdown >> diff.md + - name: Create pull request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: Update pixi lockfile + title: Update pixi lockfile + body-path: diff.md + branch: update-pixi + base: main + labels: pixi + delete-branch: true + add-paths: pixi.lock