From 5db1c1d5558c0a3f3ae09ce652f18937aed5925e Mon Sep 17 00:00:00 2001 From: squat Date: Thu, 9 Apr 2026 03:27:03 +0200 Subject: [PATCH] feat: add input to allow pushing to fork This commit fixes #267: it defines a new input for the GH action to allow pushing the branch to a fork of the parent repository and creating the PR from that fork to the parent. --- action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/action.yml b/action.yml index 2ef887e..14adeb9 100644 --- a/action.yml +++ b/action.yml @@ -20,6 +20,12 @@ inputs: description: "The branch of the PR to be created" required: false default: "update_flake_lock_action" + push-to-fork: + description: + "A fork of the checked out parent repository to which the pull request branch will be pushed. + e.g. `owner/repo-fork`. + The pull request will be created to merge the fork's branch into the parent's base." + required: false path-to-flake-dir: description: "The path of the directory containing `flake.nix` file within your repository. Useful when `flake.nix` cannot reside at the root of your repository." required: false @@ -215,3 +221,4 @@ runs: labels: ${{ inputs.pr-labels }} reviewers: ${{ inputs.pr-reviewers }} body: ${{ steps.pr_body.outputs.content }} + push-to-fork: ${{ inputs.push-to-fork }}