Update Flake Inputs #2
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
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 }} |