forked from GoogleCloudPlatform/DataflowTemplates
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.45 KB
/
update-python-deps.yml
File metadata and controls
47 lines (39 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Update Python Dependencies
on:
schedule:
- cron: '0 16 * * 1' # Every Monday at 11 AM EST (16:00 UTC)
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-python-deps:
name: Update Python Dependencies
runs-on: ubuntu-latest
if: github.repository == 'GoogleCloudPlatform/DataflowTemplates'
steps:
- name: Checkout code
uses: actions/checkout@v5.0.0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Update Python Dependencies
env:
PY_VERSION: "3.11"
shell: bash
run: |
bash python/generate_all_dependencies.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'deps: update Python dependencies'
title: 'chore(deps): update Python dependencies'
body: |
This PR updates the Python dependencies for all templates that use Python.
This is an automated PR created by the update-python-deps workflow.
**Note:** If this PR does not trigger the template integration tests, please close the PR and reopen it. This should trigger all the tests.
branch: chore/update-python-deps
base: main
labels: package-upgrade