Skip to content

Create snowflake-devops-demo.yml #4

Create snowflake-devops-demo.yml

Create snowflake-devops-demo.yml #4

name: snowflake-devops-demo
# Controls when the action will run.
on:
push:
branches:
- main
paths:
- 'migrations/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy-snowflake-changes-job:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v2
env:
SF_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SF_USERNAME: ${{ secrets.SNOWFLAKE_USERNAME }}
SF_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SF_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
SF_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}

Check failure on line 28 in .github/workflows/snowflake-devops-demo.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/snowflake-devops-demo.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
- name: Use Python 3.8.x
uses: actions/[email protected]
with:
python-version: 3.8.x
run: |
echo "GITHUB_WORKSPACE: $GITHUB_WORKSPACE"
python --version
echo "Step 1: Installing schemachange"
pip install schemachange
echo "Step 2: Running schemachange"
schemachange -f $GITHUB_WORKSPACE/migrations -a $SF_ACCOUNT -u $SF_USERNAME -r $SF_ROLE -w $SF_WAREHOUSE -d $SF_DATABASE -c $SF_DATABASE.SCHEMACHANGE.CHANGE_HISTORY --create-change-history-table