Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
commit-message:
prefix: "ci"
109 changes: 109 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Release

on:
pull_request:
types: [closed]
branches: [main]

jobs:
release:
# Only run if PR was merged (not just closed) and has a release label
if: |
github.event.pull_request.merged == true &&
(contains(github.event.pull_request.labels.*.name, 'release:major') ||
contains(github.event.pull_request.labels.*.name, 'release:minor') ||
contains(github.event.pull_request.labels.*.name, 'release:patch'))

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for tags

- name: Get latest tag
id: get_tag
run: |
# Get the latest semver tag (handles v prefix)
LATEST_TAG=$(git tag --sort=-v:refname | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+$' | head -1)

if [ -z "$LATEST_TAG" ]; then
echo "No existing tags found, starting from v0.0.0"
LATEST_TAG="v0.0.0"
fi

echo "latest_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
echo "Latest tag: $LATEST_TAG"

- name: Determine version bump type
id: bump_type
run: |
if ${{ contains(github.event.pull_request.labels.*.name, 'release:major') }}; then
echo "type=major" >> $GITHUB_OUTPUT
elif ${{ contains(github.event.pull_request.labels.*.name, 'release:minor') }}; then
echo "type=minor" >> $GITHUB_OUTPUT
elif ${{ contains(github.event.pull_request.labels.*.name, 'release:patch') }}; then
echo "type=patch" >> $GITHUB_OUTPUT
fi

- name: Calculate new version
id: new_version
run: |
LATEST_TAG="${{ steps.get_tag.outputs.latest_tag }}"
BUMP_TYPE="${{ steps.bump_type.outputs.type }}"

# Remove 'v' prefix if present
VERSION=${LATEST_TAG#v}

# Split version into parts
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"

# Bump version based on type
case $BUMP_TYPE in
major)
MAJOR=$((MAJOR + 1))
MINOR=0
PATCH=0
;;
minor)
MINOR=$((MINOR + 1))
PATCH=0
;;
patch)
PATCH=$((PATCH + 1))
;;
esac

NEW_VERSION="v${MAJOR}.${MINOR}.${PATCH}"
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
echo "New version: $NEW_VERSION (bump type: $BUMP_TYPE)"

- name: Create and push tag
run: |
NEW_VERSION="${{ steps.new_version.outputs.new_version }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "$NEW_VERSION" -m "Release $NEW_VERSION"
git push origin "$NEW_VERSION"

- name: Create GitHub Release
uses: actions/github-script@v7
with:
script: |
const newVersion = '${{ steps.new_version.outputs.new_version }}';
const previousTag = '${{ steps.get_tag.outputs.latest_tag }}';

await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: newVersion,
name: `Release ${newVersion}`,
generate_release_notes: true,
draft: false,
prerelease: false
});

console.log(`Created release ${newVersion}`);
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<p align="center">
<a href="https://www.ibm.com/docs/en/planning-analytics/2.0.0?topic=12-welcome-tm1-database"><img src="https://img.shields.io/badge/TM1_Database-v12.4+-blue" alt="TM1 versions"></a>
<a href="https://code.cubewise.com/open-source/bedrock/"><img src="https://img.shields.io/badge/Bedrock_5_Latest_Release-v5.0.0-green" alt="v5.0.0"></a>
<a href="https://code.cubewise.com/open-source/bedrock/"><img src="https://img.shields.io/badge/Bedrock_5_Latest_Release-v5.2.0-green" alt="v5.0.0"></a>
</p>
<h1></h1>

Expand Down
42 changes: 24 additions & 18 deletions bedrock_processes_json/}bedrock.chore.execution.check.json

Large diffs are not rendered by default.

83 changes: 30 additions & 53 deletions bedrock_processes_json/}bedrock.cube.clone.json

Large diffs are not rendered by default.

40 changes: 23 additions & 17 deletions bedrock_processes_json/}bedrock.cube.create.json

Large diffs are not rendered by default.

56 changes: 31 additions & 25 deletions bedrock_processes_json/}bedrock.cube.data.clear.json

Large diffs are not rendered by default.

120 changes: 48 additions & 72 deletions bedrock_processes_json/}bedrock.cube.data.copy.intercube.json

Large diffs are not rendered by default.

162 changes: 58 additions & 104 deletions bedrock_processes_json/}bedrock.cube.data.copy.json

Large diffs are not rendered by default.

88 changes: 47 additions & 41 deletions bedrock_processes_json/}bedrock.cube.data.export.json

Large diffs are not rendered by default.

44 changes: 25 additions & 19 deletions bedrock_processes_json/}bedrock.cube.data.hold.json

Large diffs are not rendered by default.

109 changes: 42 additions & 67 deletions bedrock_processes_json/}bedrock.cube.data.import.json

Large diffs are not rendered by default.

28 changes: 17 additions & 11 deletions bedrock_processes_json/}bedrock.cube.data.save.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,34 @@
"Type": "None"
},
"Parameters": [
{
"Name": "pCube",
"Prompt": "REQUIRED: Cube name",
"Value": "",
"Type": "String"
},
{
"Name": "pDelim",
"Prompt": "OPTIONAL: Delimiter for list parameters (Default = '&')",
"Value": "&",
"Type": "String"
},
{
"Name": "pLogOutput",
"Prompt": "OPTIONAL: write parameters and action summary to server message log (Boolean True = 1)",
"Prompt": "OPTIONAL: Write parameters and action summary to server message log (Boolean. Default = 0)",
"Value": 0,
"Type": "Numeric"
},
{
"Name": "pStrictErrorHandling",
"Prompt": "OPTIONAL: On encountering any error, exit with major error status by ProcessQuit after writing to the server message log (Boolean True = 1)",
"Prompt": "OPTIONAL: On encountering any error, exit with major error status by ProcessQuit after writing to the server message log (Boolean. Default = 0)",
"Value": 0,
"Type": "Numeric"
},
{
"Name": "pCube",
"Prompt": "REQUIRED: Save data for this cube (Separated by Delimiter, Accepts Wild card)",
"Value": "",
"Type": "String"
},
{
"Name": "pDelim",
"Prompt": "OPTIONAL: Delimiter",
"Value": "&",
"Name": "pJson",
"Prompt": "OPTIONAL: JSON Object with process parameter values. This will overwrite user passed parameters.",
"Value": "{}",
"Type": "String"
}
],
Expand Down
Loading