Skip to content

SNOW-1650124: Pass Azure SAS Token via params #207

SNOW-1650124: Pass Azure SAS Token via params

SNOW-1650124: Pass Azure SAS Token via params #207

name: Port Changes to SP
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
branches:
- main
jobs:
port_changes_to_sp:
runs-on: ubuntu-latest
if: ${{!contains(github.event.pull_request.labels.*.name, 'DO_NOT_PORT_CHANGES_TO_SP')}}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check PR description and labels
run: |
regex_pattern=".*https://github.com/snowflakedb/Stored-Proc-Python-Connector/pull/[0-9]+.*"
description=$(jq -r '.pull_request.body' $GITHUB_EVENT_PATH)
if [[ ! $description =~ $regex_pattern ]]; then
echo "Error: PR description must contain a regex or label DO_NOT_PORT_CHANGES_TO_SP"
exit 1
fi