selfuryon / nix-update-action

Update flake packages by nix-update via github-actions
MIT License
8 stars 2 forks source link

specifying packages does not work #1

Closed michaelBelsanti closed 10 months ago

michaelBelsanti commented 10 months ago

I am trying to add this action to a project, but specifying packages as shown in the README file does not seem to be working correctly. Specifying blacklisted packages does work and can be used as a workaround in the meantime.

This is the workflow file I am using:

Details

``` name: "Update packages" on: workflow_dispatch: schedule: - cron: "0 10 * * *" # https://crontab.guru/#0_10_*_*_0 jobs: updateFlakePackages: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 - name: Install Nix uses: cachix/install-nix-action@v20 - name: Update flake packages uses: selfuryon/nix-update-action@v1.0.0 with: packages: "slippi-netplay,slippi-launcher" ```

michaelBelsanti commented 10 months ago

Not very familiar with github actions, but the problem may be this line? Should inputs.inputs be inputs.packages? https://github.com/selfuryon/nix-update-action/blob/321c76cee103e797247394012429aca833ee6489/action.yaml#L122C15-L122C15

selfuryon commented 10 months ago

Hello! Thank you for finding the issue, I didn't test exactly this scenario in real life and missed that!

selfuryon commented 10 months ago

Released a new version. Can you check that pls?