From 9bbc229cf4329746a3b6d5a31b1cb5c84fec2877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Wed, 30 Oct 2024 17:19:24 +0000 Subject: [PATCH] feat: allow overriding github token --- action.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index ddf8d6e..c87bf2c 100644 --- a/action.yaml +++ b/action.yaml @@ -3,6 +3,9 @@ name: 'nix-update action' description: 'A GitHub action that detects and updates flake outputs via nix-update tool' inputs: + token: + description: 'The token that the action will use to create and update the pull request.' + default: ${{ github.token }} packages: description: 'A space-separated list of inputs to update. Leave empty to update all inputs.' required: false @@ -130,6 +133,7 @@ runs: id: create-pr uses: peter-evans/create-pull-request@v4 with: + token: ${{ inputs.token }} branch: ${{ inputs.branch }} delete-branch: true title: ${{ inputs.pr-title }} @@ -137,5 +141,3 @@ runs: labels: ${{ inputs.pr-labels }} reviewers: ${{ inputs.pr-reviewers }} body: ${{ inputs.pr-body }} - -