Skip to content

Commit

Permalink
Add default fork-token
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Dec 18, 2024
1 parent 40a3d03 commit d922e79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prepare-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ inputs:
description: |
GitHub token to create and push to the fork.
Fine-grained PAT: `administration: write; contents: write`
default: ${{ inputs.token }}
runs:
using: composite
steps:
Expand Down Expand Up @@ -79,13 +80,13 @@ runs:
id: create-fork
uses: conda/actions/create-fork@create-fork
with:
token: ${{ inputs.fork-token || inputs.token }}
token: ${{ inputs.fork-token }}

- name: Create PR
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
# push to the fork
branch-token: ${{ inputs.fork-token || inputs.token }}
branch-token: ${{ inputs.fork-token }}
push-to-fork: ${{ steps.create-fork.outputs.fork }}
branch: changelog-${{ inputs.version }}
commit-message: Changelog ${{ inputs.version }}
Expand Down

0 comments on commit d922e79

Please sign in to comment.