From 921963cce4b5c0e6516a841f2be9680802201512 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 11 May 2023 02:07:22 -0400 Subject: feat: start using packwiz2nix --- .github/workflows/update-mods.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to '.github/workflows/update-mods.yml') diff --git a/.github/workflows/update-mods.yml b/.github/workflows/update-mods.yml index 9fbfea5..03c3df4 100644 --- a/.github/workflows/update-mods.yml +++ b/.github/workflows/update-mods.yml @@ -1,27 +1,27 @@ name: Update mods on: - workflow_dispatch: schedule: + # run daily at 0:00 utc - cron: "0 0 * * *" + workflow_dispatch: + +permissions: + contents: write jobs: update-mods: runs-on: ubuntu-latest steps: - - name: get packwiz - run: | - curl -fsSLo ~/packwiz.zip https://nightly.link/packwiz/packwiz/workflows/go/main/Linux%2064-bit%20x86.zip - unzip -d ~ ~/packwiz.zip - chmod 755 ~/packwiz - - uses: actions/checkout@v3.3.0 + - uses: cachix/install-nix-action@v20 - - name: update mods + - name: update run: | - echo "y" | ~/packwiz update --all + echo "y" | nix run nixpkgs#packwiz -- update --all - - uses: EndBug/add-and-commit@v9 + - name: commit changes + uses: EndBug/add-and-commit@v9 with: default_author: github_actions message: "chore: update mods" -- cgit v1.2.3