From 793ab554754cb6de359369f17afd99033d3d334c Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Fri, 13 Dec 2024 14:01:18 +0100 Subject: [PATCH] fix: Update create-pull-request action, use "" for branch name It should now work with Gitea and Forgejo --- action.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/action.yml b/action.yml index f9c01eb..b201103 100644 --- a/action.yml +++ b/action.yml @@ -210,16 +210,17 @@ runs: run: rm -f pr_body.txt pr_body.template - name: Create PR id: create-pr - uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5 + # uses: peter-evans/create-pull-request@main + uses: https://code.forgejo.org/peter-evans/create-pull-request with: - base: ${{ inputs.base }} - branch: ${{ inputs.branch }} + base: "${{ inputs.base }}" + branch: "${{ inputs.branch }}" delete-branch: true - committer: ${{ env.GIT_COMMITTER_NAME }} ${{ env.GIT_COMMITTER_EMAIL }} - author: ${{ env.GIT_AUTHOR_NAME }} ${{ env.GIT_AUTHOR_EMAIL }} - title: ${{ inputs.pr-title }} - token: ${{ inputs.token }} - assignees: ${{ inputs.pr-assignees }} - labels: ${{ inputs.pr-labels }} - reviewers: ${{ inputs.pr-reviewers }} - body: ${{ steps.pr_body.outputs.content }} + committer: "${{ env.GIT_COMMITTER_NAME }} ${{ env.GIT_COMMITTER_EMAIL }}" + author: "${{ env.GIT_AUTHOR_NAME }} ${{ env.GIT_AUTHOR_EMAIL }}" + title: "${{ inputs.pr-title }}" + token: "${{ inputs.token }}" + assignees: "${{ inputs.pr-assignees }}" + labels: "${{ inputs.pr-labels }}" + reviewers: "${{ inputs.pr-reviewers }}" + body: "${{ steps.pr_body.outputs.content }}"