Skip to content

Commit

Permalink
Update publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aamend authored Mar 19, 2024
1 parent b34f58c commit 2e39a4a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ on:
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
Expand All @@ -26,7 +34,7 @@ concurrency:

jobs:
release:
runs-on: ubuntu-latest
runs-on: html_publisher
steps:

- name: Checkout project
Expand Down Expand Up @@ -55,11 +63,14 @@ jobs:
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
Expand Down

0 comments on commit 2e39a4a

Please sign in to comment.