From bd74b670999715c437a2f9b4f69248652ee87dad Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 16 Apr 2020 09:38:32 -0400 Subject: [PATCH] Update echos --- README.md | 2 +- entrypoint.sh | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 46a7a41..990871b 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ The name of the built kpz file with: release-version: ${{ steps.semvers.outputs.v_patch }} release-name: ${{ steps.myvars.outputs.GITHUB_REPO }} - minimum-version: ${{ steps.myvars.outputs.MINIMUM_VERSION }} + minimum-version: ${{ steps.koha-version-oldstable.outputs.version-major-minor }} ``` Take a look at https://github.com/bywatersolutions/koha-plugin-kitchen-sink/blob/master/.github/workflows/main.yml for a real world usage. diff --git a/entrypoint.sh b/entrypoint.sh index 1d3fdd7..b486c2d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,8 +4,15 @@ PLUGIN_VERSION=$1 PLUGIN_NAME=$2 MINIMUM_VERSION=$3 +echo "PLUGIN VERSION: $PLUGIN_VERSION" +echo "PLUGIN NAME: $PLUGIN_NAME" +echo "MINIMUM VERSION: $MINIMUM_VERSION" + RELEASE_FILENAME="${PLUGIN_NAME}-${PLUGIN_VERSION}.kpz" +echo "RELEASE FILENAME: $RELEASE_FILENAME" + TODAY_ISO=$(date '+%Y-%m-%d') +echo "TODAY ISO: $TODAY_ISO" cd /github/workspace mkdir dist @@ -13,6 +20,7 @@ cp -r Koha dist/. cd dist PLUGIN_MODULE=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*\.pm$' | sed '1q;d') +echo "PLUGIN MODULE: $PLUGIN_MODULE" META_YML=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*/META\.yml$' | sed '1q;d') sed -i -e "s/{VERSION}/${PLUGIN_VERSION}/g" ${PLUGIN_MODULE} @@ -27,14 +35,8 @@ if [ -f "$META_YML" ]; then fi zip -r ../${RELEASE_FILENAME} ./Koha +cp ${META_YML} .. # Copy munged META.yml to the root directory cd .. rm -rf dist -echo "MINIMUM VERSION: $MINIMUM_VERSION" -echo "PLUGIN VERSION: $PLUGIN_VERSION" -echo "PLUGIN NAME: $PLUGIN_NAME" -echo "TODAY ISO: $TODAY_ISO" -echo "RELEASE FILENAME: $RELEASE_FILENAME" -echo "PLUGIN MODULE: $PLUGIN_MODULE" - echo ::set-output name=filename::${RELEASE_FILENAME}