-
Notifications
You must be signed in to change notification settings - Fork 179
54 lines (43 loc) · 1.64 KB
/
update-python-platform.yaml
File metadata and controls
54 lines (43 loc) · 1.64 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
name: Update func-python version in embedded templates
permissions:
contents: write
pull-requests: write
on:
schedule:
- cron: "0 6 * * *" # Daily at 06:00.
workflow_dispatch: # Manual workflow trigger
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update:
name: Update func-python version
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: knative/actions/setup-go@main
- name: Run update script
run: go run ./hack/cmd/update-python-platform/main.go
- name: Regenerate permissions manifest
run: make generate-permissions
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Run smoke tests
run: make test-python
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ github.token }}
commit-message: 'chore: update func-python version'
title: 'chore: update func-python version'
body: |
This PR updates the func-python version in the Python scaffolding templates to the latest version available on PyPI.
This PR was automatically generated by the [update-python-platform workflow](https://github.com/${{ github.repository }}/actions/workflows/update-python-platform.yaml).
branch: update-func-python
delete-branch: true
committer: Knative Automation <automation@knative.team>
author: Knative Automation <automation@knative.team>
assignees: gauron99, matejvasek, lkingland
base: main