variables #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Notebook to Dev Environment | |
# A github action to deploy a notebook to a specific environment | |
# uses the template/deploy_notebook_to_env.yml file | |
env: | |
ENVIRONMENT: dev | |
NOTEBOOK_PATH: '@"REPO_NOTEBOOKS"."PUBLIC"."NOTEBOOKS"/branches/dev/Notebooks/DemoCount/Notebook1.ipynb' | |
NOTEBOOK_NAME: notebook_cicd | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
set_env_vars: | |
# Get the values from env: and set them as environment variables | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "" | |
outputs: | |
environment: ${{ env.ENVIRONMENT }} | |
notebook_path: ${{ env.NOTEBOOK_PATH }} | |
notebook_name: ${{ env.NOTEBOOK_NAME }} | |
deploy-notebook: | |
uses: ./.github/workflows/temp_deploy_notebook_to_env.yml | |
with: | |
environment: ${{ needs.set_env_vars.outputs.environment }} | |
notebook_path: ${{ needs.set_env_vars.outputs.notebook_path }} | |
notebook_name: ${{ needs.set_env_vars.outputs.notebook_name }} | |
secrets: inherit |