SNOW-1763673 Python3.13 support #285
This file contains 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: 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 |