Skip to content

Commit

Permalink
chore: fix GITHUB_TOKEN inaccessible in composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILLIPS71 committed Apr 13, 2024
1 parent 6e1c6c4 commit 8bcfebe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: '🏷️ '
author: 'PHILLIPS71'

inputs:
GITHUB_TOKEN:
required: true
RELEASE_TYPE:
required: true
RELEASE_IDENTIFIER:
Expand Down Expand Up @@ -47,6 +49,6 @@ runs:
uses: thomaseizinger/create-pull-request@master
with:
title: 'chore(release): ${{ steps.version.outputs.version }}'
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ inputs.GITHUB_TOKEN }}
head: release/${{ steps.version.outputs.version }}
base: main
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ jobs:
- name: '🏷️ Release'
uses: ./.github/actions/release
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TYPE: ${{ github.event.inputs.type }}
RELEASE_IDENTIFIER: ${{ github.event.inputs.identifier }}

0 comments on commit 8bcfebe

Please sign in to comment.