mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 04:56:30 +02:00
33 lines
838 B
YAML
33 lines
838 B
YAML
name: nix
|
|
on: [push]
|
|
|
|
jobs:
|
|
update-vendor-sha:
|
|
name: vendor-sha
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install nix
|
|
uses: cachix/install-nix-action@v17
|
|
with:
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
env:
|
|
NIX_CONFIG: access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Update packwiz version
|
|
run: nix run nixpkgs#nix-prefetch ./nix/prefetcher.nix | tee ./nix/vendor-sha256
|
|
env:
|
|
NIX_CONFIG: access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Commit
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
commit_message: "chore: update packwiz vendorSha256"
|
|
branch: main
|
|
|