Skip to content

Commit e33bac9

Browse files
feat: extra args
1 parent 21ef9cc commit e33bac9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ inputs:
7474
description: 'GPG Private Key Passphrase for the GPG Private Key with which to sign the commits in the PR to be created'
7575
required: false
7676
default: ''
77+
extra-args:
78+
description: 'Extra arguments to pass to nix-update'
79+
required: false
80+
default: ''
7781
outputs:
7882
pull-request-number:
7983
description: 'The number of the opened pull request'
@@ -129,6 +133,7 @@ runs:
129133
GIT_COMMITTER_NAME: ${{ env.GIT_COMMITTER_NAME }}
130134
GIT_COMMITTER_EMAIL: ${{ env.GIT_COMMITTER_EMAIL }}
131135
PATH_TO_FLAKE_DIR: ${{ inputs.path-to-flake-dir }}
136+
EXTRA_ARGS: ${{ inputs.extra-args }}
132137
- name: Create PR
133138
id: create-pr
134139
uses: peter-evans/create-pull-request@v4

nix-update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ updatePackages() {
2828
continue
2929
fi
3030
echo "Updating package '$PACKAGE'."
31-
nix-update --flake --commit "$PACKAGE" 1>/dev/null
31+
nix-update --flake --commit "$EXTRA_ARGS" "$PACKAGE" 1>/dev/null
3232
done
3333
}
3434

0 commit comments

Comments
 (0)