Skip to content

Commit

Permalink
Merge pull request #16 from databricks-industry-solutions/hotfix-pati…
Browse files Browse the repository at this point in the history
…ent-info-837p

removing 837p empty patient loop
  • Loading branch information
zavoraad authored Nov 11, 2024
2 parents 9d69352 + 85c8fba commit aa20254
Show file tree
Hide file tree
Showing 16 changed files with 136 additions and 308 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/integration-test-aws-pr.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/integration-test-aws-push.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/integration-test-gcp-pr.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/integration-test-gcp-push.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/integration-test-msa-pr.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/integration-test-msa-push.yml

This file was deleted.

85 changes: 85 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: publish

env:
DB_PROFILES: ${{ secrets.DB_PROFILES }}

on:
workflow_dispatch:
inputs:
db_profile:
type: string
description: 'Databricks environment to publish HTML from'
default: 'FIELD'
db_path:
type: string
description: 'Repository path on databricks environment'
required: true
split_markdown:
description: 'Splitting HTML by markdown'
type: choice
required: true
default: 'false'
options:
- 'true'
- 'false'

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
release:
runs-on: html_publisher
steps:

- name: Checkout project
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.9"

- name: Install dependencies
run: |
pip install git+https://github.com/databricks-industry-solutions/industry-solutions-release
- name: Package solution accelerator
run: |
import os
import configparser
import io
from databricks.solutions import Accelerator
config = configparser.ConfigParser()
config.read_file(io.StringIO(os.environ['DB_PROFILES']))
if '${{ github.event.inputs.db_profile }}' not in config.sections():
raise Exception('Provided DB_PROFILE is not supported')
config = config['${{ github.event.inputs.db_profile }}']
split_markdown = '${{ github.event.inputs.split_markdown }}' == 'true'
Accelerator(
db_host=config['host'],
db_token=config['token'],
db_path='${{ github.event.inputs.db_path }}',
db_name='${{ github.event.repository.name }}',
markdown=split_markdown,
).release()
shell: python

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'site'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ select
`EDI.recipient_qualifier_id` as edi_recipient_qualifier_id,
`EDI.sender_qualifier_id` as edi_sender_qualifier_id,
`EDI.standard_version` as edi_standard_version,
explode(`FuncitonalGroup`) as fg,
explode(`FunctionalGroup`) as fg,
filename
from edi
) fgs
Expand Down Expand Up @@ -167,7 +167,7 @@ select
`EDI.recipient_qualifier_id` as edi_recipient_qualifier_id,
`EDI.sender_qualifier_id` as edi_sender_qualifier_id,
`EDI.standard_version` as edi_standard_version,
explode(`FuncitonalGroup`) as fg,
explode(`FunctionalGroup`) as fg,
filename
from edi
) fgs
Expand Down
Loading

0 comments on commit aa20254

Please sign in to comment.