Repository navigation
58 lines (49 loc) · 2.06 KB
/
Copy pathupdate-python-deps.yml
File metadata and controls
58 lines (49 loc) · 2.06 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
48
49
50
51
52
53
54
55
56
57
58
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
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
id: cpr
uses: peter-evans/create-pull-request@3ffccacd46053766916f087ce41d627c0b8cf2d1 # v8.1.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'deps: update Python dependencies'
committer: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
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
- name: Add ignore-for-release label to PR
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}
run: gh pr edit "$PR_NUMBER" --add-label "ignore-for-release"