diff --git a/Dockerfile b/Dockerfile index 9e7cbf1..9ea891e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ COPY entrypoint.sh /entrypoint.sh RUN apk update && apk add bash git curl jq && apk add --update nodejs npm && npm install -g semver -# Added Ruby and PG deps +# Added Ruby and gem deps RUN apk add --no-cache build-base openssl postgresql-dev ENTRYPOINT ["/entrypoint.sh"] diff --git a/action.yml b/action.yml index 4949011..45a9b7f 100644 --- a/action.yml +++ b/action.yml @@ -1,16 +1,16 @@ -name: 'Github Tag and VERSION Bump' -description: 'Bump and push git tag on merge' -author: 'Nick Sjostrom' +name: "Github Tag and VERSION Bump" +description: "Bump and push git tag on merge" +author: "Nick Sjostrom" runs: - using: 'docker' - image: 'Dockerfile' + using: "docker" + image: "Dockerfile" outputs: new_tag: - description: 'Generated tag' + description: "Generated tag" tag: - description: 'The latest tag after running this action' + description: "The latest tag after running this action" part: - description: 'The part of version which was bumped' + description: "The part of version which was bumped" branding: - icon: 'git-merge' - color: 'purple' + icon: "git-merge" + color: "purple" diff --git a/entrypoint.sh b/entrypoint.sh index 0d6bec8..19d1198 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,7 +15,7 @@ suffix=${PRERELEASE_SUFFIX:-beta} verbose=${VERBOSE:-true} filename=${VERSION_FILENAME:-VERSION} bundle=${BUNDLE:-false} -bundler_version=${BUNDLER_VERSION:-2.2.21} +bundler_version=${BUNDLER_VERSION:-2.3.7} bundle_path=${BUNDLE_PATH:-vendor/bundle} cd ${GITHUB_WORKSPACE}/${source} @@ -164,7 +164,7 @@ fi echo ::set-output name=tag::$new -# Bump version file +# Bump VERSION file git remote add github "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" git pull github ${GITHUB_REF} --ff-only @@ -184,7 +184,7 @@ then git add Gemfile.lock fi -git add filename +git add $filename git commit -m "Bump version to $COMMIT_TITLE" git push github HEAD:${GITHUB_REF}