From 8bcfebe77377ec01d4aabb4b8881798cca0ad32d Mon Sep 17 00:00:00 2001 From: Jordan Phillips Date: Sat, 13 Apr 2024 16:51:03 +1000 Subject: [PATCH] chore: fix GITHUB_TOKEN inaccessible in composite action --- .github/actions/release/action.yml | 4 +++- .github/workflows/release.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index fd087d0..8e9a00c 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -2,6 +2,8 @@ name: '🏷️ ' author: 'PHILLIPS71' inputs: + GITHUB_TOKEN: + required: true RELEASE_TYPE: required: true RELEASE_IDENTIFIER: @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b49670..06aa146 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}