From 7a4033f180e6563072fe03a5bdcb9d3c79023042 Mon Sep 17 00:00:00 2001 From: Alejandro Villar Date: Wed, 17 Jan 2024 14:49:09 +0100 Subject: [PATCH] Tests for env variable setting --- ogc/bblocks/entrypoint.py | 1 + postprocess/action.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ogc/bblocks/entrypoint.py b/ogc/bblocks/entrypoint.py index 8f64d57..527eecb 100644 --- a/ogc/bblocks/entrypoint.py +++ b/ogc/bblocks/entrypoint.py @@ -250,6 +250,7 @@ sparql_gsp = sparql_conf.get('push') if sparql_gsp: print(f"Pushing {register_ttl_fn} to SPARQL GSP at {sparql_gsp}", file=sys.stderr) + print(os.environ.keys()) if os.environ.get('SPARQL_USERNAME'): auth = (os.environ['SPARQL_USERNAME'], os.environ.get('SPARQL_PASSWORD')) else: diff --git a/postprocess/action.yml b/postprocess/action.yml index 03a576a..b44bc72 100644 --- a/postprocess/action.yml +++ b/postprocess/action.yml @@ -45,6 +45,9 @@ inputs: runs: using: docker image: docker://ghcr.io/opengeospatial/bblocks-postprocess + env: + SPARQL_USERNAME: $SPARQL_USERNAME + SPARQL_PASSWORD: $SPARQL_PASSWORD args: - '--register-file' - ${{ inputs.register_file }}