Skip to content

Commit

Permalink
fix(gha): fix missing git_committer_* definition in action (#919)
Browse files Browse the repository at this point in the history
  Resolves: #918
  • Loading branch information
codejedi365 committed May 7, 2024
1 parent ea2f2d2 commit ccef9d8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
4 changes: 4 additions & 0 deletions action.sh
Expand Up @@ -60,6 +60,10 @@ fi
if ! [ "${INPUT_GIT_COMMITTER_EMAIL:="-"}" = "-" ]; then
git config --global user.email "$INPUT_GIT_COMMITTER_EMAIL"
fi
if [ "${INPUT_GIT_COMMITTER_NAME:="-"}" != "-" ] && [ "${INPUT_GIT_COMMITTER_EMAIL:="-"}" != "-" ]; then
# Must export this value to the environment for PSR to consume the override
export GIT_COMMIT_AUTHOR="$INPUT_GIT_COMMITTER_NAME <$INPUT_GIT_COMMITTER_EMAIL>"
fi

# See https://github.com/actions/runner-images/issues/6775#issuecomment-1409268124
# and https://github.com/actions/runner-images/issues/6775#issuecomment-1410270956
Expand Down
32 changes: 18 additions & 14 deletions action.yml
@@ -1,40 +1,44 @@
---
name: "Python Semantic Release"
name: Python Semantic Release

description: "Automatic Semantic Versioning for Python projects"
description: Automatic Semantic Versioning for Python projects

inputs:
root_options:
description: "Additional options for the main command. Example: -vv --noop"
required: false
default: "-v"
required: false
description: |
Additional options for the main command. Example: -vv --noop
directory:
description: "Sub-directory to cd into before running semantic-release"
default: "."
required: false
description: Sub-directory to cd into before running semantic-release

github_token:
description: "GitHub token used to push release notes and new commits/tags"
type: string
required: true
description: GitHub token used to push release notes and new commits/tags

git_committer_name:
description: "The human name for the “committer” field"
default: "github-actions"
type: string
required: false
description: The human name for the “committer” field

git_committer_email:
description: "The email address for the “committer” field"
default: "github-actions@github.com"
type: string
required: false
description: The email address for the “committer” field

ssh_public_signing_key:
description: "The ssh public key used to sign commits"
type: string
required: false
description: The ssh public key used to sign commits

ssh_private_signing_key:
description: "The ssh private key used to sign commits"
type: string
required: false
description: The ssh private key used to sign commits

# `semantic-release version` command line options
prerelease:
Expand Down Expand Up @@ -108,5 +112,5 @@ outputs:
The Git tag corresponding to the version output
runs:
using: "docker"
image: "Dockerfile"
using: docker
image: Dockerfile

0 comments on commit ccef9d8

Please sign in to comment.