Sha256: 2e1154a2a37b1e9932c7c220494c09f580355e3eb09f69946ff78674acfdae9b

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

#!/usr/bin/env bash
set -e

#!/usr/bin/env bash
LATEST_COMMIT=$(git rev-parse HEAD)
VERSION_COMMIT=$(git log -1 --format=format:%H VERSION)
if [ $VERSION_COMMIT = $LATEST_COMMIT ];
    then
        if [ -s VERSION ] # Check if content is empty
            then 
                VERSION=`cat VERSION`
                echo "VERSION is changed to $VERSION" 
            else 
                echo "[ERROR] VERSION file is empty."
                exit 1
        fi 
        git config user.email "splunk-oss-admin@splunk.com"
        git config user.name "splunk-oss-admin"
        git checkout develop
        git pull origin develop
        git checkout -b release/$VERSION origin/develop
        git push https://$RELEASE_GITHUB_USER:$RELEASE_GITHUB_PASS@github.com/splunk/fluent-plugin-k8s-metrics-agg.git release/$VERSION
        git checkout master
        git merge --no-edit release/$VERSION
        git push https://$RELEASE_GITHUB_USER:$RELEASE_GITHUB_PASS@github.com/splunk/fluent-plugin-k8s-metrics-agg.git master
fi

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-k8s-metrics-agg-1.1.1 .circleci/check_version_trigger_release.sh