We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0145775 commit a112435Copy full SHA for a112435
.github/workflows/deploy_pipeline.yml
@@ -41,4 +41,18 @@ jobs:
41
42
# Update Snowflake's copy of the repository
43
- name: Fetch repository changes
44
- run: snow connection test
+ run: snow git fetch "${REPO_NAME}"
45
+
46
+ # Deploy pipeline with branch specific parameters
47
+ - name: Deploy data pipeline to ${{ github.ref_name }}
48
+ run: |
49
+ BRANCH_NAME=${{ github.ref_name }}
50
+ if [ "${BRANCH_NAME}" == "main" ]; then
51
+ RETENTION_TIME=1
52
+ else
53
+ RETENTION_TIME=0
54
+ fi
55
+ snow git execute \
56
+ "@${REPO_NAME}/branches/${BRANCH_NAME}/steps/0[134]_*" \
57
+ -D "environment='${BRANCH_NAME}'" \
58
+ -D "retention_time=${RETENTION_TIME}"
0 commit comments