Pass GITHUB_TOKEN (github.token) into the composite step for the Gitea release API

This commit is contained in:
Mike Mulligan
2026-07-15 17:42:16 -04:00
parent 3a45b3d8b4
commit dca1a6a5a6
+4 -2
View File
@@ -11,8 +11,9 @@ description: "Package and publish a WordPress plugin/theme release to a Gitea re
# with: # with:
# channel_deploy_key: ${{ secrets.CHANNEL_DEPLOY_KEY }} # channel_deploy_key: ${{ secrets.CHANNEL_DEPLOY_KEY }}
# #
# GITHUB_REPOSITORY / GITHUB_REF_NAME / GITHUB_SERVER_URL / GITHUB_TOKEN are provided # GITHUB_REPOSITORY / GITHUB_REF_NAME / GITHUB_SERVER_URL are provided automatically by the
# automatically by the Actions runner and consumed by release.sh directly. # runner; GITHUB_TOKEN is passed through below via github.token (a composite step's env does
# NOT inherit it automatically), and release.sh consumes all of them directly.
inputs: inputs:
channel_deploy_key: channel_deploy_key:
@@ -37,6 +38,7 @@ runs:
- name: Release via wp-release-ci - name: Release via wp-release-ci
shell: bash shell: bash
env: env:
GITHUB_TOKEN: ${{ github.token }}
CHANNEL_DEPLOY_KEY: ${{ inputs.channel_deploy_key }} CHANNEL_DEPLOY_KEY: ${{ inputs.channel_deploy_key }}
CHANNEL_SSH_PORT: ${{ inputs.channel_ssh_port }} CHANNEL_SSH_PORT: ${{ inputs.channel_ssh_port }}
CHANNEL_BRANCH: ${{ inputs.channel_branch }} CHANNEL_BRANCH: ${{ inputs.channel_branch }}