Skip to content

🐍 Update Dependencies #27

🐍 Update Dependencies

🐍 Update Dependencies #27

Workflow file for this run

---
# 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:
- "main"
- "master"
paths:
- "!pdm.lock"
- "!.github/**"
env:
python-version: 3.11
permissions: {}
jobs:
repository:
name: "Repository Checks"
if: startsWith(github.ref, 'dep/update-pdm-lock') != true
uses: os-climate/osc-github-devops/.github/workflows/repository.yaml@main
permissions:
contents: read
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-24.04"
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: "Set up Python"
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.python-version }}
- name: "Update Python dependencies"
uses: pdm-project/update-deps-action@be7ffca4b5580391152c609398ec3324728f7fc3 # v1.9
with:
sign-off-commit: "true"
# The personal access token, default: ${{ github.token }}
# token: ${{ github.token }}
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"