Skip to content

Commit

Permalink
update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tjirab committed Feb 1, 2024
1 parent 912db6a commit 82ff2f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ inputs:
description: "Set to true to enable debug mode."
default: 'false'

max_impacted_downstreams:
description: "Maximum number of downstream generations."
required: false
default: 30

runs:
using: "composite"
steps:
Expand All @@ -46,6 +51,7 @@ runs:
GITHUB_ACTION_PATH: ${{ github.action_path }}
GITHUB_BASE_REF: ${{ github.base_ref }}
DEBUG_MODE: ${{ inputs.debug_mode }}
MAX_IMPACTED_DOWNSTREAMS: ${{ inputs.max_impacted_downstreams }}

# Post a comment on the PR.
- uses: marocchino/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions src/impact_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
from datahub.ingestion.graph.client import DatahubClientConfig, DataHubGraph
from datahub.metadata.schema_classes import DatasetPropertiesClass
from datahub.telemetry import telemetry
from os import environ

from rendering import datahub_url_from_urn, format_entity

OUTPUT_PATH = pathlib.Path("impact_analysis.md")
DBT_ID_PROP = "dbt_unique_id"
MAX_IMPACTED_DOWNSTREAMS = environ.get("MAX_IMPACTED_DOWNSTREAMS") or 30
MAX_IMPACTED_DOWNSTREAMS = os.getenv("MAX_IMPACTED_DOWNSTREAMS")
MAX_DOWNSTREAMS_TO_FETCH = 1000


Expand Down

0 comments on commit 82ff2f8

Please sign in to comment.