Skip to content

Commit

Permalink
ci(update): attempt a fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Dec 28, 2023
1 parent 61198c5 commit 9dfce86
Showing 1 changed file with 31 additions and 36 deletions.
67 changes: 31 additions & 36 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
#
# - 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/[email protected]

- 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

0 comments on commit 9dfce86

Please sign in to comment.