forked from isabelroses/nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61198c5
commit 9dfce86
Showing
1 changed file
with
31 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |