-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Implment dependency update as reusable workflow (#125)
Signed-off-by: Matthew Watkins <[email protected]>
- Loading branch information
1 parent
67ae172
commit 5e8173d
Showing
4 changed files
with
76 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# SPDX-FileCopyrightText: 2024 The Linux Foundation <https://linuxfoundation.org> | ||
|
||
name: "♻️ Python Update Dependencies" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_call: | ||
inputs: | ||
PYTHON-VERSION: | ||
description: "Python version to use with PDM" | ||
type: string | ||
required: false | ||
default: "3.10" | ||
secrets: | ||
GH_TOKEN: | ||
description: "GitHub Token" | ||
required: true | ||
|
||
concurrency: | ||
cancel-in-progress: true | ||
# yamllint disable-line rule:line-length | ||
group: python-dependencies-${{ github.workflow }} || github.run_id }} | ||
|
||
jobs: | ||
update-dependencies: | ||
name: "Run: pdm-project/update-deps-action" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Update Python Dependencies" | ||
uses: pdm-project/[email protected] | ||
with: | ||
sign-off-commit: "true" | ||
token: ${{ secrets.GH_TOKEN }} | ||
commit-message: "Chore: Update dependencies and pdm.lock [skip ci]" | ||
pr-title: "Update Python Dependencies" | ||
update-strategy: eager | ||
# Whether to install PDM plugins before update | ||
install-plugins: "false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# SPDX-FileCopyrightText: 2024 The Linux Foundation <https://linuxfoundation.org> | ||
|
||
name: "♻️ Python Update Dependencies" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- "*" | ||
- "!update-devops-tooling" | ||
|
||
jobs: | ||
update: | ||
name: "Run: pdm-project/update-deps-action" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Update Python Dependencies" | ||
uses: os-climate/devops-reusable-workflows/.github/workflows/python-dependencies-reusable@main | ||
with: | ||
sign-off-commit: "true" | ||
token: ${{ secrets.GH_TOKEN }} | ||
commit-message: "Chore: Update dependencies and pdm.lock [skip ci]" | ||
pr-title: "Update Python Dependencies" | ||
update-strategy: eager | ||
# Whether to install PDM plugins before update | ||
install-plugins: "false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters