From aa902c3538b61691e81efd035aae55f8636a219c Mon Sep 17 00:00:00 2001 From: maydayv7 Date: Tue, 1 Feb 2022 10:22:05 +0530 Subject: [PATCH] fix: Support Custom Commit Message --- action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 3af84a0..fc327f7 100644 --- a/action.yml +++ b/action.yml @@ -9,8 +9,8 @@ inputs: description: 'GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT)' required: false default: ${{ github.token }} - pr-title: - description: 'The title of the Pull Request to be created' + commit-msg: + description: 'The commit message as well as title of the PR to be created' required: false default: "flake.lock: Update" pr-labels: @@ -26,9 +26,9 @@ runs: for input in ${{ inputs.inputs }}; do inputs+=("--update-input" "$input") done - nix flake lock "${inputs[@]}" --commit-lock-file + nix flake lock "${inputs[@]}" --commit-lock-file --commit-lockfile-summary "${{ inputs.commit-msg }}" else - nix flake update --commit-lock-file + nix flake update --commit-lock-file --commit-lockfile-summary "${{ inputs.commit-msg }}" fi shell: bash env: @@ -49,7 +49,7 @@ runs: with: branch: update_flake_lock_action delete-branch: true - title: ${{ inputs.pr-title }} + title: ${{ inputs.commit-msg }} token: ${{ inputs.token }} labels: ${{ inputs.pr-labels }} body: |