-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (55 loc) · 1.73 KB
/
dependencies.yaml
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
59
60
61
62
---
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2024 The Linux Foundation <https://linuxfoundation.org>
name: "♻️ Update Dependencies"
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
schedule:
- cron: "0 8 1 * *"
# push:
# branches:
# - "**"
# - "!update-devops-tooling"
# - "!**/update-pdm-lock"
env:
python-version: 3.11
jobs:
repository:
name: "Repository Checks"
uses: os-climate/osc-github-devops/.github/workflows/repository.yaml@main
permissions:
# Required for action that creates labels: github-mandatory-labels
contents: write
python-dependencies:
name: "Update Python Dependencies"
needs:
- repository
# Only run if Python code is present in repository
if: needs.repository.outputs.python_project == 'true' ||
needs.repository.outputs.jupyter_notebooks == 'true'
runs-on: ubuntu-latest
permissions:
# IMPORTANT: mandatory to raise the PR
id-token: write
pull-requests: write
repository-projects: write
contents: write
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: ${{ env.python-version }}
- name: "Update Python dependencies"
uses: pdm-project/[email protected]
with:
sign-off-commit: "true"
token: ${{ github.token }}
commit-message: "Chore: Update dependencies and pdm.lock [skip ci]"
pr-title: "Update Python module dependencies"
update-strategy: eager
# Whether to install PDM plugins before update
install-plugins: "false"