Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eshepelyuk committed Aug 20, 2024
1 parent b9b5aa5 commit 7311c35
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
20 changes: 13 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ inputs:
description: Perform a release with cog bump --auto
required: false
default: 'false'
release-initial-version:
description: |
Enforce this version if there's no previous releases
with cog bump --version <release-initial-version>
required: false
check:
description: Perform a conventional commit check with cog --check
required: false
Expand Down Expand Up @@ -65,10 +70,11 @@ runs:
- id: cog
shell: bash
run: |
${{ github.action_path }}/cog.sh \
${{ inputs.check }} \
${{ inputs.check-latest-tag-only }} \
${{ inputs.release }} \
${{ inputs.git-user }} \
${{ inputs.git-user-email }} \
${{ inputs.working-directory }}
${{ github.action_path }}/cog.sh \
${{ inputs.check }} \
${{ inputs.check-latest-tag-only }} \
${{ inputs.release }} \
${{ inputs.git-user }} \
${{ inputs.git-user-email }} \
${{ inputs.working-directory }} \
${{ inputs.release-initial-version }}
3 changes: 3 additions & 0 deletions cog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ RELEASE="${3}"
GIT_USER="${4}"
GIT_USER_EMAIL="${5}"
WORK_DIR="${6}"
INITIAL_VERSION="${7}"

# shellcheck disable=2164
cd "${WORK_DIR}"
echo "Working directory: ${WORK_DIR}, current directory: ${PWD}"

echo "Initial version @@${INITIAL_VERSION}@@"

echo "Setting git user : ${GIT_USER}"
git config --global user.name "${GIT_USER}"

Expand Down

0 comments on commit 7311c35

Please sign in to comment.