Skip to content

Commit

Permalink
feat: extra args
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardotglobal committed Nov 1, 2024
1 parent 21ef9cc commit e33bac9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ inputs:
description: 'GPG Private Key Passphrase for the GPG Private Key with which to sign the commits in the PR to be created'
required: false
default: ''
extra-args:
description: 'Extra arguments to pass to nix-update'
required: false
default: ''
outputs:
pull-request-number:
description: 'The number of the opened pull request'
Expand Down Expand Up @@ -129,6 +133,7 @@ runs:
GIT_COMMITTER_NAME: ${{ env.GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ env.GIT_COMMITTER_EMAIL }}
PATH_TO_FLAKE_DIR: ${{ inputs.path-to-flake-dir }}
EXTRA_ARGS: ${{ inputs.extra-args }}
- name: Create PR
id: create-pr
uses: peter-evans/create-pull-request@v4
Expand Down
2 changes: 1 addition & 1 deletion nix-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ updatePackages() {
continue
fi
echo "Updating package '$PACKAGE'."
nix-update --flake --commit "$PACKAGE" 1>/dev/null
nix-update --flake --commit "$EXTRA_ARGS" "$PACKAGE" 1>/dev/null
done
}

Expand Down

0 comments on commit e33bac9

Please sign in to comment.