From 9dfce863dd2fa29959cf175c52801259df2a090e Mon Sep 17 00:00:00 2001 From: isabel Date: Thu, 28 Dec 2023 19:15:07 +0000 Subject: [PATCH] ci(update): attempt a fix --- .github/workflows/update.yml | 67 +++++++++++++++++------------------- 1 file changed, 31 insertions(+), 36 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 1fe7107..6eb6316 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -1,36 +1,31 @@ -# name: Update Flake Inputs -# on: -# workflow_dispatch: -# schedule: -# - cron: "0 2 * * 3" # 02:00 on Wednesday -# -# jobs: -# update-lockfile: -# runs-on: ubuntu-latest -# -# steps: -# - name: Checkout repository -# uses: actions/checkout@v4.1.0 -# -# - name: Install Nix -# uses: nixbuild/nix-quick-install-action@v26 -# -# - name: Update Sources -# run: | -# nix run github:berberman/nvfetcher -# pushd pkgs/nvim-treesitter -# nix run github:berberman/nvfetcher -# popd -# -# - name: Update Lockfile -# uses: DeterminateSystems/update-flake-lock@main -# id: update -# with: -# pr-title: "chore(deps): update inputs" -# commit-msg: "chore(deps): update inputs" -# token: ${{ secrets.GITHUB_TOKEN }} -# -# - name: Merge Changes -# run: gh pr merge ${{ steps.update.outputs.pull-request-number }} --squash --delete-branch -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +name: Update Flake Inputs +on: + workflow_dispatch: + schedule: + - cron: "0 2 * * 3" # 02:00 on Wednesday + +jobs: + update-lockfile: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4.1.0 + + - name: Install Nix + uses: nixbuild/nix-quick-install-action@v26 + + - name: Update Sources + run: | + nix run nixpkgs#nvfetcher + pushd pkgs/nvim-treesitter + nix run nixpkgs#nvfetcher + popd + + - name: Update Lockfile + run: nix flake update + + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "chore: update deps" + commit_user_name: GitHub Actions