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
8 changes: 8 additions & 0 deletions .github/workflows/publish-abcclassification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ jobs:
- name: Copy package files
run: cp -rv source-repo/src/${{ env.DAXPATTERN_NAME }}/* "fork-repo/${{ steps.package.outputs.folder }}/"

# Replace the package ID and version placeholders in functions.tmdl
- name: Replace placeholders
working-directory: fork-repo
run: |
FUNCTIONS_FILE="${{ steps.package.outputs.folder }}/lib/functions.tmdl"
sed -i "s/__PLACEHOLDER_DAXLIB_PACKAGEID__/${{ steps.package.outputs.name }}/g" "${FUNCTIONS_FILE}"
sed -i "s/__PLACEHOLDER_DAXLIB_PACKAGEVERSION__/${{ steps.package.outputs.version }}/g" "${FUNCTIONS_FILE}"

# Commit changes. If there are no changes, this will fail and stop the workflow
- name: Git commit changes
working-directory: fork-repo
Expand Down
8 changes: 4 additions & 4 deletions src/AbcClassification/lib/functions.tmdl
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function 'DaxPatterns.AbcClassification.ComputeInAbcClass' = ```
)
RETURN Result
```
annotation DAXLIB_PackageId = DaxPatterns.AbcClassification
annotation DAXLIB_PackageId = __PLACEHOLDER_PACKAGE_ID__

annotation DAXLIB_PackageVersion = 0.1.3
annotation DAXLIB_PackageVersion = __PLACEHOLDER_PACKAGE_VERSION__

/// Return the items filtered by ABC classes
/// Implement Dynamic ABC Classification pattern from DAX Patterns
Expand Down Expand Up @@ -110,6 +110,6 @@ function 'DaxPatterns.AbcClassification.ItemsInClass' = ```
)
RETURN Result
```
annotation DAXLIB_PackageId = DaxPatterns.AbcClassification
annotation DAXLIB_PackageId = __PLACEHOLDER_PACKAGE_ID__

annotation DAXLIB_PackageVersion = 0.1.3
annotation DAXLIB_PackageVersion = __PLACEHOLDER_PACKAGE_VERSION__