[Snyk] Security upgrade urllib3 from 1.26.6 to 1.26.19 #53
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: update-cloud-functions | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'GCP/main.py' | |
- 'GCP/urls.py' | |
- '.github/workflows/update-cloud-functions.yml' | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
- name: Setup gcloud | |
uses: google-github-actions/setup-gcloud@master | |
with: | |
project_id: ${{ secrets.GCP_PROJECT_ID }} | |
service_account_key: ${{ secrets.GCP_SA_KEY }} | |
- name: Setup Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Run | |
run: | | |
gcloud functions deploy product-availability-checker \ | |
--region us-west2 \ | |
--source https://source.developers.google.com/projects/product-availability-checker/repos/github_gdmoney_product-availability-checker/moveable-aliases/master/paths/GCP |